1
0
Fork 0

Move tasks to script

This commit is contained in:
Braiden Vasco 2017-07-02 22:56:49 +00:00
parent ae7672adab
commit 1a71de9634
2 changed files with 8 additions and 9 deletions

View file

@ -53,3 +53,11 @@ mount -v $ROOT_DEV "$ROOTFS_DIR" -t ext4
mkdir -p "$BOOTFS_DIR"
mount -v $BOOT_DEV "$BOOTFS_DIR" -t vfat
if [ -e ${ROOTFS_DIR}/etc/ld.so.preload ]; then
mv ${ROOTFS_DIR}/etc/ld.so.preload ${ROOTFS_DIR}/etc/ld.so.preload.disabled
fi
if [ ! -x ${ROOTFS_DIR}/usr/bin/qemu-arm-static ]; then
cp /usr/bin/qemu-arm-static ${ROOTFS_DIR}/usr/bin/
fi

View file

@ -1,9 +0,0 @@
#!/bin/bash -e
if [ -e ${ROOTFS_DIR}/etc/ld.so.preload ]; then
mv ${ROOTFS_DIR}/etc/ld.so.preload ${ROOTFS_DIR}/etc/ld.so.preload.disabled
fi
if [ ! -x ${ROOTFS_DIR}/usr/bin/qemu-arm-static ]; then
cp /usr/bin/qemu-arm-static ${ROOTFS_DIR}/usr/bin/
fi