summaryrefslogtreecommitdiffstats
path: root/stage1
diff options
context:
space:
mode:
Diffstat (limited to 'stage1')
-rwxr-xr-xstage110
1 files changed, 8 insertions, 2 deletions
diff --git a/stage1 b/stage1
index f49cd91..d78ede7 100755
--- a/stage1
+++ b/stage1
@@ -941,6 +941,11 @@ EOF
make busybox CROSS_COMPILE=${TARGET}-
make install CONFIG_PREFIX=${ROOTFS}
+ # add in an password file for cleaniness (even if it has no passwd)
+ (
+ echo "root::0:0:root:/:/bin/bash"
+ ) > $ROOTFS/etc/passwd
+
# add in some basic mount points
[ -d ${ROOTFS}/proc ] || mkdir ${ROOTFS}/proc
[ -d ${ROOTFS}/sys ] || mkdir ${ROOTFS}/sys
@@ -948,10 +953,10 @@ EOF
echo "proc /proc proc defaults 0 0"
echo "sysfs /sys sysfs defaults 0 0"
) > $ROOTFS/etc/fstab
+ touch $ROOTFS/etc/mtab
# and a place holder for other useful initializations
[ -d ${ROOTFS}/etc/init.d ] || mkdir -p ${ROOTFS}/etc/init.d
- echo "#!/bin/sh" > ${ROOTFS}/etc/init.d/rcS
(
echo "#!/bin/sh"
echo "/bin/mount -a"
@@ -1103,9 +1108,10 @@ EOF
| sed 's/--with-build-sysroot=[^ ]*//' \
| sed 's/--with-arch=armv8//' \
| sed 's/--with-fpu=neon-fp-armv8//'
+ echo SUFFIX=$SUFFIX
echo export J DISTCC_HOSTS DISTCC_BACKOFF_PERIOD PATH
- echo export TARGET RPMTARGET TCONFIGARGS
+ echo export TARGET RPMTARGET TCONFIGARGS SUFFIX
) > $ROOTFS/stage2/local.conf
mcd $PREFIX/distccd-bin