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