d162722645e051f118471a3a81c336fb600e3a3c
[live-boot-grml.git] / debian / patches / 10_validateroot.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 10_validateroot.dpatch by Christian Hofstaedtler <ch@grml.org>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: add live-bottom/10validateroot
6
7 @DPATCH@
8 diff --git a/scripts/live-bottom/10validateroot b/scripts/live-bottom/10validateroot
9 new file mode 100755
10 index 0000000..8d42afc
11 --- /dev/null
12 +++ b/scripts/live-bottom/10validateroot
13 @@ -0,0 +1,27 @@
14 +#!/bin/sh
15 +
16 +#set -e
17 +
18 +# initramfs-tools header
19 +
20 +PREREQ=""
21 +
22 +prereqs()
23 +{
24 +        echo "${PREREQ}"
25 +}
26 +
27 +case "${1}" in
28 +        prereqs)
29 +                prereqs
30 +                exit 0
31 +                ;;
32 +esac
33 +
34 +. /scripts/live-functions
35 +. /scripts/live-helpers
36 +
37 +if ! [ -x "/root/sbin/init" ] ; then
38 +  panic "rootfs can not be mounted as supposed because of fatal error during bootup."
39 +fi
40 +