Add 10validateroot to validate root device before accessing it.
[live-initramfs-grml.git] / grml / 10validateroot
1 #!/bin/sh
2
3 #set -e
4
5 # initramfs-tools header
6
7 PREREQ=""
8
9 prereqs()
10 {
11         echo "${PREREQ}"
12 }
13
14 case "${1}" in
15         prereqs)
16                 prereqs
17                 exit 0
18                 ;;
19 esac
20
21 . /scripts/live-functions
22 . /scripts/live-helpers
23
24 if ! [ -x "/root/sbin/init" ] ; then
25   panic "rootfs can not be mounted as supposed because of fatal error during bootup."
26 fi
27