Browse Source
Also install all the scripts using inst, so that we can install the right shell interpreter for our scripts. We still install bash as well.master


6 changed files with 40 additions and 35 deletions
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash |
||||
#!/bin/sh |
||||
target=$1 |
||||
shift |
||||
echo "$@" >"$target" |
@ -1,6 +1,7 @@
@@ -1,6 +1,7 @@
|
||||
#!/bin/bash |
||||
[[ -f /cryptroot ]] || return |
||||
echo "Encrypted root detected." |
||||
cryptopts=$(< /cryptroot) |
||||
/sbin/cryptsetup luksOpen $cryptopts || emergency_shell |
||||
udevadm settle --timeout=30 |
||||
#!/bin/sh |
||||
[ -f /cryptroot ] && { |
||||
echo "Encrypted root detected." |
||||
cryptopts=$(cat /cryptroot) |
||||
/sbin/cryptsetup luksOpen $cryptopts || emergency_shell |
||||
udevadm settle --timeout=30 |
||||
} |
||||
|
@ -1,7 +1,10 @@
@@ -1,7 +1,10 @@
|
||||
#!/bin/bash |
||||
resume=$(getarg 'resume=*') || return |
||||
resume=${resume#resume=} |
||||
[[ -b $resume ]] || return |
||||
# parsing the output of ls is Bad, but until there is a better way... |
||||
read x x x x maj min x < <(ls -lH "$resume") |
||||
echo "${maj/,/}:$min"> /sys/power/resume |
||||
#!/bin/sh |
||||
resume=$(getarg resume) && { |
||||
resume=${resume#resume=} |
||||
[ -b "$resume" ] && { |
||||
# parsing the output of ls is Bad, but until there is a better way... |
||||
ls -lH "$resume" | ( |
||||
read x x x x maj min x; |
||||
echo "${maj%,}:$min"> /sys/power/resume) |
||||
} |
||||
} |
||||
|
@ -1,10 +1,11 @@
@@ -1,10 +1,11 @@
|
||||
#!/bin/bash |
||||
#!/bin/sh |
||||
# FIXME: load selinux policy. this should really be done after we switchroot |
||||
[[ -x $NEWROOT/usr/sbin/load_policy ]] || return |
||||
chroot $NEWROOT /usr/sbin/load_policy -i |
||||
if (($? == 3)); then |
||||
echo "Initial SELinux policy load failed and enforcing mode requested." |
||||
echo "Not continuing" |
||||
sleep 100d |
||||
exit 1 |
||||
fi |
||||
[ -x "$NEWROOT/usr/sbin/load_policy" ] && { |
||||
chroot $NEWROOT /usr/sbin/load_policy -i |
||||
if [ $? -eq 3 ]; then |
||||
echo "Initial SELinux policy load failed and enforcing mode requested." |
||||
echo "Not continuing" |
||||
sleep 100d |
||||
exit 1 |
||||
fi |
||||
} |
||||
|
Loading…
Reference in new issue