mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2025-12-06 07:12:01 +01:00
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
This commit is contained in:
parent
ff47811a85
commit
14cf12d01b
|
|
@ -1,5 +1,5 @@
|
||||||
run_hook() {
|
run_hook() {
|
||||||
grep -q 'findroot' /proc/cmdline || return
|
[[ "${findroot}" == "y" ]] || return
|
||||||
|
|
||||||
# Initialisation
|
# Initialisation
|
||||||
local newroot="/new_root"
|
local newroot="/new_root"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue