
5 changed files with 4 additions and 47 deletions
@ -1,14 +0,0 @@
@@ -1,14 +0,0 @@
|
||||
|
||||
resume=$(getarg resume=) && ! getarg noresume && [ -b "$resume" ] && { |
||||
( |
||||
/bin/echo -e 'KERNEL=="'${resume#/dev/}'", RUN+="/bin/echo %M:%m > /sys/power/resume"' |
||||
/bin/echo -e 'SYMLINK=="'${resume#/dev/}'", RUN+="/bin/echo %M:%m > /sys/power/resume"' |
||||
) >> /etc/udev/rules.d/99-resume.rules |
||||
} |
||||
|
||||
( |
||||
echo 'KERNEL=="'${root#/dev/}'", RUN+="/bin/mount '$fstype' -o '$rflags' '$root' '$NEWROOT'" ' |
||||
echo 'SYMLINK=="'${root#/dev/}'", RUN+="/bin/mount '$fstype' -o '$rflags' '$root' '$NEWROOT'" ' |
||||
) >> /etc/udev/rules.d/99-mount.rules |
||||
|
||||
|
@ -1,4 +0,0 @@
@@ -1,4 +0,0 @@
|
||||
#!/bin/sh |
||||
dracut_install echo |
||||
inst_hook pre-udev 10 "$moddir/parse-root-opts.sh" |
||||
inst_hook pre-udev 20 "$moddir/genrules.sh" |
@ -1,27 +0,0 @@
@@ -1,27 +0,0 @@
|
||||
#!/bin/sh |
||||
if resume=$(getarg resume=) && ! getarg noresume; then |
||||
export resume |
||||
echo "$resume" >/.resume |
||||
else |
||||
unset resume |
||||
fi |
||||
|
||||
root=$(getarg root=) |
||||
case $root in |
||||
LABEL=*) root=${root#LABEL=} |
||||
root="$(echo $root |sed 's,/,\\x2f,g')" |
||||
root="/dev/disk/by-label/${root}" ;; |
||||
UUID=*) root="/dev/disk/by-uuid/${root#UUID=}" ;; |
||||
'') echo "Warning: no root specified" |
||||
root="/dev/sda1" ;; |
||||
esac |
||||
|
||||
if rflags="$(getarg rootflags=)"; then |
||||
getarg rw && rflags="${rflags},rw" || rflags="${rflags},ro" |
||||
else |
||||
getarg rw && rflags=rw || rflags=ro |
||||
fi |
||||
|
||||
fstype="$(getarg rootfstype=)" && fstype="-t ${fstype}" || fstype="-t auto" |
||||
|
||||
export fstype rflags root |
@ -1,3 +1,5 @@
@@ -1,3 +1,5 @@
|
||||
#!/bin/sh |
||||
dracut_install echo |
||||
inst_hook pre-udev 10 "$moddir/parse-root-opts.sh" |
||||
inst_hook mount 99 "$moddir/mount-root.sh" |
||||
inst_hook pre-udev 20 "$moddir/genrules.sh" |
||||
#inst_hook mount 99 "$moddir/mount-root.sh" |
||||
|
Loading…
Reference in new issue