mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-16 05:11:31 +00:00
add some debug output to the ext2 image creation to see whats going on
This commit is contained in:
parent
ed8cf26ffd
commit
eddc9d8589
6
debian/changelog
vendored
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
|
livecd-rootfs (1.140) maverick; urgency=low
|
||||||
|
|
||||||
* tell mke2fs that we _really_ want a filesystem on this "non-blockdevice"
|
* 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
|
# Add 10MiB extra free space for first boot + ext3 journal
|
||||||
size=$(($(du -ks ${ROOT} | cut -f1) + (10240)))
|
size=$(($(du -ks ${ROOT} | cut -f1) + (10240)))
|
||||||
|
# DEBUG: get the detected size in the log
|
||||||
|
echo "size variable set to: ${size}"
|
||||||
MOUNTPOINT=$(mktemp -d)
|
MOUNTPOINT=$(mktemp -d)
|
||||||
DEV=$(losetup -f)
|
DEV=$(losetup -f)
|
||||||
echo "Building ext2 filesystem."
|
echo "Building ext2 filesystem."
|
||||||
@ -88,8 +90,12 @@ livefs_ext2()
|
|||||||
# create an empty ext2 image and loop mount it
|
# create an empty ext2 image and loop mount it
|
||||||
dd if=/dev/zero of=livecd.${FSS}.ext2 bs=1024 count=0 seek=$size
|
dd if=/dev/zero of=livecd.${FSS}.ext2 bs=1024 count=0 seek=$size
|
||||||
mke2fs -F livecd.${FSS}.ext2
|
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}
|
mount -o loop=${DEV} livecd.${FSS}.ext2 ${MOUNTPOINT}
|
||||||
|
|
||||||
|
# DEBUG: see if the imounted image free space matches
|
||||||
|
df
|
||||||
# copy chroot content to image
|
# copy chroot content to image
|
||||||
cp -a ${ROOT} ${MOUNTPOINT}
|
cp -a ${ROOT} ${MOUNTPOINT}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user