The timer string format link isn’t getting rendered properly, though I can’t see why. When it’s converted to HTML, it’s generated as an anchor tag with no href
property.
Oh, I see the problem. The URL is missing a /
at the beginning.
jlosito
October 24, 2019, 2:13pm
24
With sudo snap unset system proxy.https
?
There’s a new option to set the console log level.
system.kernel.printk.console-loglevel
Override the console log level which is a number between 0 and 7.
The configuration will be stored in /etc/sysctl.d/99-snapd.conf
and the default value is 4
Available since snapd 2.46.
Example to set the log level to 1:
$ snap set system system.kernel.printk.console-loglevel=1
$ cat /etc/sysctl.d/99-snapd.conf
kernel.printk = 1 4 1 7
2 Likes
Thanks so much for letting us know, and for the written description. I’ve updated the doc with your details.
rpjday
January 15, 2022, 8:26pm
27
Right after the “snap get system” example in the first section, I would add the variation of “snap get -d system”.
1 Like
tobias
February 2, 2022, 2:15pm
28
ping @degville : option swap.size
seems to be undocumented Relevant forum post: Snap refresh after system time is corrected - #5 by ijohnson
2 Likes
Excellent! Thanks for letting me know. Doc is now updated and I’ll copy this across to the Ubuntu Core docs too.
Thanks so much for letting us know, and for including the new link!
rpjday
April 22, 2023, 12:28pm
32
I think it’s worth mentioning that “snap get system” and “snap get core” are synonymous – I filed a bug for that:
Terminological pedantry ... on my core22 box, if I want to set or get some system configuration info, I would normally use the "system" keyword, as in:
$ sudo snap set system flavour=frog
error: cannot perform the following tasks:
- Run configure...
rpjday
April 22, 2023, 6:42pm
33
Another note – while the “experimental” system option still exists, it’s moved on considerably from the example(s) presented on this page.
// -*- Mode: Go; indent-tabs-mode: t -*-
//go:build !nomanagers
// +build !nomanagers
/*
* Copyright (C) 2021 Canonical Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
This file has been truncated. show original
func (s *experimentalSuite) TestExportedFeatures(c *C) { conf := &mockConf{ state: s.state, conf: map[string]interface{}{featureConf(features.PerUserMountNamespace): true}, } err := configcore.FilesystemOnlyRun(classicDev, conf) c.Assert(err, IsNil) c.Check(features.PerUserMountNamespace.ControlFile(), testutil.FilePresent) delete(conf.changes, "experimental.per-user-mount-namespace") err = configcore.FilesystemOnlyRun(classicDev, conf) c.Assert(err, IsNil) c.Check(features.PerUserMountNamespace.ControlFile(), testutil.FilePresent) } func (s *experimentalSuite) TestFilesystemOnlyApply(c *C) { conf := configcore.PlainCoreConfig(map[string]interface{}{ "experimental.refresh-app-awareness": "true", }) tmpDir := c.MkDir()
Not sure if those links are accurate or complete, it would be nice to have a list of what are still considered “experimental” system config options.