projects
/
outofuni
/
dib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
forgot hf in conf and rearranmged fs creation and mouint ...
[outofuni/dib.git]
/
build.sh
diff --git
a/build.sh
b/build.sh
index
3446087
..
7b7e2ed
100755
(executable)
--- a/
build.sh
+++ b/
build.sh
@@
-54,9
+54,9
@@
function build_all {
if [ "$validimg" = "no" ]; then
dd if=/dev/zero of=./rootfs.img bs=1M count=$IMGSIZE
fi
if [ "$validimg" = "no" ]; then
dd if=/dev/zero of=./rootfs.img bs=1M count=$IMGSIZE
fi
- mkfs.${ROOTFS} -f -L rootfs ./rootfs.img
- # mount
+ # make fs and mount
umount_if_mounted rootfs.mnt
umount_if_mounted rootfs.mnt
+ mkfs.${ROOTFS} -f -L rootfs ./rootfs.img
rm -rf rootfs.mnt
mkdir rootfs.mnt
mount -o loop ./rootfs.img ./rootfs.mnt
rm -rf rootfs.mnt
mkdir rootfs.mnt
mount -o loop ./rootfs.img ./rootfs.mnt