add some debug output to the ext2 image creation to see whats going on

ubuntu/precise
Oliver Grawert 15 years ago
parent ed8cf26ffd
commit eddc9d8589

6
debian/changelog vendored

@ -1,3 +1,9 @@
livecd-rootfs (1.141) UNRELEASED; urgency=low
* add some debug output to teh ext2 image creation to see whats going on
-- Oliver Grawert <ogra@ubuntu.com> Thu, 22 Jul 2010 18:27:53 +0200
livecd-rootfs (1.140) maverick; urgency=low
* tell mke2fs that we _really_ want a filesystem on this "non-blockdevice"

@ -78,6 +78,8 @@ livefs_ext2()
{
# Add 10MiB extra free space for first boot + ext3 journal
size=$(($(du -ks ${ROOT} | cut -f1) + (10240)))
# DEBUG: get the detected size in the log
echo "size variable set to: ${size}"
MOUNTPOINT=$(mktemp -d)
DEV=$(losetup -f)
echo "Building ext2 filesystem."
@ -88,8 +90,12 @@ livefs_ext2()
# create an empty ext2 image and loop mount it
dd if=/dev/zero of=livecd.${FSS}.ext2 bs=1024 count=0 seek=$size
mke2fs -F livecd.${FSS}.ext2
# DEBUG: see if the image size matches the detected size value
ls -l livecd.${FSS}.ext2
mount -o loop=${DEV} livecd.${FSS}.ext2 ${MOUNTPOINT}
# DEBUG: see if the imounted image free space matches
df
# copy chroot content to image
cp -a ${ROOT} ${MOUNTPOINT}

Loading…
Cancel
Save