export PATH=/usr/sbin:/usr/bin:/sbin:/bin
exec > /dev/console 2>&1
-echo "made it to the rootfs! Powering down."
+echo "made it to the rootfs!"
while read -r dev _ fstype opts rest || [ -n "$dev" ]; do
[ "$fstype" != "nfs" ] && [ "$fstype" != "nfs4" ] && continue
: > /dev/watchdog
sync /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_marker /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_marker2
+
+echo "Powering down."
poweroff -f
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
exec > /dev/console 2>&1
-echo "made it to the rootfs! Powering down."
+echo "made it to the rootfs!"
while read -r dev _ fstype opts rest || [ -n "$dev" ]; do
[ "$fstype" != "ext4" ] && continue
echo "iscsi-OK $dev $fstype $opts" | dd oflag=direct,dsync of=/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_marker status=none
done < /proc/mounts
sync /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_marker
+
+echo "Powering down."
poweroff -f
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
exec > /dev/console 2>&1
-echo "made it to the rootfs! Powering down."
+echo "made it to the rootfs!"
while read -r dev _ fstype opts rest || [ -n "$dev" ]; do
[ "$fstype" != "ext4" ] && continue
echo "iscsi-OK $dev $fstype $opts" | dd oflag=direct,dsync of=/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_marker status=none
done < /proc/mounts
sync /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_marker
+
+echo "Powering down."
poweroff -f
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
exec > /dev/console 2>&1
+echo "made it to the rootfs!"
while read -r dev fs fstype opts rest || [ -n "$dev" ]; do
[ "$dev" = "rootfs" ] && continue
echo "nbd-OK $fstype $opts"
break
done < /proc/mounts
-echo "made it to the rootfs! Powering down."
mount -n -o remount,ro /
sync /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_marker
+
+echo "Powering down."
poweroff -f
: > /dev/watchdog
exec > /dev/console 2>&1
+echo "made it to the rootfs!"
if command -v systemctl > /dev/null 2>&1; then
systemctl --failed --no-legend --no-pager >> /run/failed
echo "All OK"
fi
-echo "made it to the rootfs!"
echo "Powering down."
if [ -d /usr/lib/systemd/system ]; then