Adding upstream version 3.0~a21.
[debian-live-boot.git] / scripts / live-bottom / 10validateroot
blobd4d16207c549130257fc36e8ce998761bc0541f4
1 #!/bin/sh
3 # Error out in case a "wrong" file system was chosen.
5 #set -e
7 # initramfs-tools header
9 PREREQ=""
11 prereqs()
13 echo "${PREREQ}"
16 case "${1}" in
17 prereqs)
18 prereqs
19 exit 0
21 esac
23 . /scripts/live-functions
24 . /scripts/live-helpers
26 if ! [ -d "/root/usr/share/live-boot" ]
27 then
28 panic "A wrong rootfs was mounted."