diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/live-bottom/10validateroot | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/live-bottom/10validateroot b/scripts/live-bottom/10validateroot new file mode 100755 index 0000000..23eb900 --- /dev/null +++ b/scripts/live-bottom/10validateroot @@ -0,0 +1,29 @@ +#!/bin/sh + +# Error out in case a "wrong" file system was chosen. + +#set -e + +# initramfs-tools header + +PREREQ="" + +prereqs() +{ + echo "${PREREQ}" +} + +case "${1}" in + prereqs) + prereqs + exit 0 + ;; +esac + +. /scripts/live-functions +. /scripts/live-helpers + +if ! [ -d "/root/usr/share/doc/live-boot" ] +then + panic "A wrong rootfs was mounted." +fi |
