Commit graph

7 commits

Author SHA1 Message Date
Gerd v. Egidy 4109b1ea38 add "nomdlvm" boot commandline option to not activate md raid or lvm devices
Activating md raid or lvm means that the kernel changes the metadata like
timestamps and mount counts of the devices and writes them to disk.
Also reconstructing degraded md raid devices is automatically activated.
There are cases when writing to disks is absolutely not wanted. For example
when restoring data from broken disks or when doing forensics.

The nomdlvm boot commandline option prevents any activation and thus
not wanted writes. If the user wants to use md or lvm with the option
set, all md or lvm devices have to be manually found and activated.

nomdlvm is only implemented as boot commandline option and does not use
the YAML config file. The reason is that the udev rules are evaluated
before sysrescue-configuration.lua is run, so the YAML config is not
ready yet. Moving nomdlvm after sysrescue-configuration.lua would be
an invasive operation and modify the activation order of all md and lvm
devices for all cases, increasing the probability of regressions.
Also udev rules offer a direct access to boot commandline options, making
implementation straightforward and robust.
2022-07-27 22:27:11 +02:00
Francois Dupoux ca6bcd6548 Implement the primary configuration processing script in lua (#251) 2022-01-26 20:07:53 +00:00
Marcos Mello 14cf12d01b findroot hook: use initcpio cmdline variable
Arch's initcpio automatic creates global variables in the form of
variable=y to kernel command line options without a suffix.

See parse_cmdline_item():

https://git.archlinux.org/mkinitcpio.git/tree/init_functions
2020-07-10 16:21:42 -03:00
fdupoux 3760fed011 Allow the user to choose which device to boot from if there are multiple systems found 2020-05-17 15:28:35 +01:00
fdupoux 88a82c0662 Added support for booting from luks encrpyted devices in findroot 2020-05-17 12:33:31 +01:00
fdupoux f6fa1db397 Add tools required to use encrypted devices to the initramfs 2020-05-17 10:04:41 +01:00
Francois Dupoux 63039626a6 Added new entry in boot menu to start from a Linux OS installed on the disk 2020-05-17 07:43:27 +00:00