Use live-boot.log instead of live.log for debug output.
[live-boot-grml.git] / debian / patches / 10_validateroot.patch
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 index 0000000..8d42afc
10 --- /dev/null
11 +++ b/scripts/live-bottom/10validateroot
12 @@ -0,0 +1,27 @@
13 +#!/bin/sh
14 +
15 +#set -e
16 +
17 +# initramfs-tools header
18 +
19 +PREREQ=""
20 +
21 +prereqs()
22 +{
23 +        echo "${PREREQ}"
24 +}
25 +
26 +case "${1}" in
27 +        prereqs)
28 +                prereqs
29 +                exit 0
30 +                ;;
31 +esac
32 +
33 +. /scripts/live-functions
34 +. /scripts/live-helpers
35 +
36 +if ! [ -x "/root/sbin/init" ] ; then
37 +  panic "rootfs can not be mounted as supposed because of fatal error during bootup."
38 +fi
39 +