Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions initrd/bin/resume
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ boot() {
# Copy MAC
wait
cp /mnt/config/mac_addr /mnt/root/etc
# remount rootfs readonly for filesystem check to work
mount -o remount,ro /mnt/root
# kill running daemons
kill -9 $(cat /run/dropbear.pid)
kill -9 $(cat /run/udhcpc.pid)
Expand All @@ -58,7 +60,7 @@ boot() {
}

# Clean up and boot
if [ -h /mnt/root/sbin/init ]; then
if [ -h /mnt/root/sbin/init -o -e /mnt/root/sbin/init ]; then
boot
fi
#check for LUKS-devices
Expand All @@ -68,7 +70,7 @@ if
fi
initlvm
mount -o rw $(findfs LABEL=rootfs) /mnt/root
if [ -h /mnt/root/sbin/init ]; then
if [ -h /mnt/root/sbin/init -o -e /mnt/root/sbin/init ]; then
boot
else
echo -e "Opps, boot failed"
Expand Down
2 changes: 2 additions & 0 deletions initrd/init
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ boot() {
# Copy MAC
wait
cp /mnt/config/mac_addr /mnt/root/etc
# remount rootfs readonly for filesystem check to work
mount -o remount,ro /mnt/root
# kill running daemons
kill -9 $(cat /run/dropbear.pid) 2>&1 >/dev/null
kill -9 $(cat /run/udhcpc.pid) 2>&1 >/dev/null
Expand Down