1.1 --- a/qi-emdebian-postsetup Tue Mar 11 22:51:17 2014 +0100
1.2 +++ b/qi-emdebian-postsetup Sat Mar 15 01:23:21 2014 +0100
1.3 @@ -43,6 +43,18 @@
1.4 exit 1
1.5 fi
1.6
1.7 +if [ `stat -c %U "$ROOTDIR"` != "root" ]; then
1.8 + cat 1>&2 <<EOF
1.9 +$PROGNAME: It appears that the root filesystem is not owned by root.
1.10 +
1.11 +This will probably produce a non-functioning system when copied to the target
1.12 +device. It is recommended that you re-run multistrap as a privileged user, but
1.13 +if you wish to continue with the current configuration, change the owner of the
1.14 +root filesystem to root and then try running this script again.
1.15 +EOF
1.16 + exit 1
1.17 +fi
1.18 +
1.19 # Make a link to the busybox binary acting as a shell.
1.20
1.21 if [ ! -e "$ROOTDIR/usr/lib/busybox" ]; then