The whole of /var may be read-only, while /run is a newstyle ramdisk.
The /run/lock directory is created by the Finit bootmisc.so plugin at
boot.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This change adds a `factory` tool, and login shell, that schedules a
reset of all writable (overlay) filesystems. The tool is set up with
the suid gid flag to allow all members of the wheel group to perform
the reset.
The login method only allows reset from /dev/console, to prevent any
malicious reset over SSH. This should be further constrained later
when PAM is introduced.
To initiate factory reset from the login prompt, use login/pass:
factory/reset
To initiate factory reset from the shell, call
factory
Both methods are interactive by default, but two command line options
can be used to modify the behavior:
-r Skip reboot, and "reboot now?" question
-y Assume yes to all questions, for non-interactive use
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This is a workaround for the following code in ifupdown/template.py:37
that throw the exception with python-mako >= 1.2.0:
try:
self.logger.debug('setting template lookuppath to %s'
template_lookuppath)
lc = utils.importName('mako.lookup', 'TemplateLookup')
self.tclassargs['lookup'] = lc(
directories=template_lookuppath.split(':'))
except Exception as e:
self.logger.warning('unable to set template lookup path'
' %s (%s): are you sure \'python3-mako\''
'is installed?'
% (template_lookuppath, str(e)))
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
The ifupdown2 package is incompatible with python-mako >= v1.2.0. So as
a workaround we add the old one as a local override.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
The Westermo querierd is an IGMP querier daemon for use on top of a
standard Linux VLAN-aware bridge.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This is the next generation ifupdown from Cumulus Networks (now NVIDIA).
The idea is to use this to set up everything port/lag/vlan/interface
related in the system.
This first import uses the kkit branch from the KernelKit fork, becuase
of, amongst other things, integration problems with upstream packages.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This adds Finit support for starting chronydy and mstpd, as well as
an update to inadyn supporting env file for custom args.
Also included is a patch to the start script of mstpd for BusyBox pidof,
which don't have the '-c' option.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Turns out its real easy to get this wrong, ending up with a "" as your
default fstab. Since this is an advanced option let's mark it as such.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>