From 4c344031ef2d93465bf72d132ee8c3fcb61d886b Mon Sep 17 00:00:00 2001 From: Al Stone Date: Sat, 17 Nov 2012 14:53:28 -0700 Subject: aarch64: clean up busybox so it boots properly Signed-off-by: Al Stone --- stage1 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'stage1') 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 -- cgit