diff options
author | Al Stone <ahs3@redhat.com> | 2012-11-17 14:53:28 -0700 |
---|---|---|
committer | Al Stone <ahs3@redhat.com> | 2012-11-17 14:53:28 -0700 |
commit | 4c344031ef2d93465bf72d132ee8c3fcb61d886b (patch) | |
tree | a32d4454dd1239ff9cc9641f073bbb1df3f85fac /stage1 | |
parent | cc66fb707a3765b8fdc276f3d8a9b7da0340e656 (diff) | |
download | bootstrap.git.DONOTUSE-4c344031ef2d93465bf72d132ee8c3fcb61d886b.tar.gz bootstrap.git.DONOTUSE-4c344031ef2d93465bf72d132ee8c3fcb61d886b.tar.xz bootstrap.git.DONOTUSE-4c344031ef2d93465bf72d132ee8c3fcb61d886b.zip |
aarch64: clean up busybox so it boots properly
Signed-off-by: Al Stone <ahs3@redhat.com>
Diffstat (limited to 'stage1')
-rwxr-xr-x | stage1 | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 |