projects
/
outofuni
/
dib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stupid! if it does not exist, dd it!
[outofuni/dib.git]
/
build.sh
diff --git
a/build.sh
b/build.sh
index
efe6274
..
b04f89a
100755
(executable)
--- a/
build.sh
+++ b/
build.sh
@@
-50,6
+50,10
@@
function build_all {
dd if=/dev/zero of=./rootfs.img \
bs=1M count=$IMGSIZE
fi
dd if=/dev/zero of=./rootfs.img \
bs=1M count=$IMGSIZE
fi
+ else
+ echo "creating rootfs.img"
+ dd if=/dev/zero of=./rootfs.img \
+ bs=1M count=$IMGSIZE
fi
# make fs and mount
umount_if_mounted rootfs.mnt
fi
# make fs and mount
umount_if_mounted rootfs.mnt
@@
-58,6
+62,7
@@
function build_all {
mkfs.${ROOTFS} $FORCEFS -L rootfs ./rootfs.img
rm -rf rootfs.mnt
mkdir rootfs.mnt
mkfs.${ROOTFS} $FORCEFS -L rootfs ./rootfs.img
rm -rf rootfs.mnt
mkdir rootfs.mnt
+ modprobe loop
mount -o loop ./rootfs.img ./rootfs.mnt
# debootstrap first part
debootstrap --verbose --arch $ARCH --variant=minbase \
mount -o loop ./rootfs.img ./rootfs.mnt
# debootstrap first part
debootstrap --verbose --arch $ARCH --variant=minbase \
@@
-165,7
+170,7
@@
function build_in_chroot {
# profile
echo -en "\nalias l='ls -al --color'\n\n" >> /etc/profile
# post install hooks
# profile
echo -en "\nalias l='ls -al --color'\n\n" >> /etc/profile
# post install hooks
- for file in
'ls /post_routines'
; do
+ for file in
`ls /post_routines`
; do
. /post_routines/$file
done
}
. /post_routines/$file
done
}