Adding upstream version 3.0~a29.
[live-boot-grml.git] / initramfs-tools / scripts / live-bottom / 10validateroot
1 #!/bin/sh
2
3 # Error out in case a "wrong" file system was chosen.
4
5 #set -e
6
7 # initramfs-tools header
8
9 PREREQ=""
10
11 prereqs()
12 {
13         echo "${PREREQ}"
14 }
15
16 case "${1}" in
17         prereqs)
18                 prereqs
19                 exit 0
20                 ;;
21 esac
22
23 # FIXME: stop hardcoding overloading of initramfs-tools functions
24 . /scripts/functions
25 . /lib/live/boot/initramfs-tools.sh
26
27 if ! [ -d "/root/usr/share/live-boot" ]
28 then
29         panic "A wrong rootfs was mounted."
30 fi