Simple squashfs support

ubuntu/precise
Adam Conrad 19 years ago
parent 073c79e802
commit 13930b49ed

2
debian/changelog vendored

@ -1,6 +1,8 @@
livecd-rootfs (0.27) UNRELEASED; urgency=low livecd-rootfs (0.27) UNRELEASED; urgency=low
* Copy the kernel out of the livefs as well, so we have one that matches. * Copy the kernel out of the livefs as well, so we have one that matches.
* Enable rudimentary support for squashfs filesystems, initially enabling
it on the primary architectures only (powerpc, i386, amd64)
-- Adam Conrad <adconrad@0c3.net> Sat, 7 Jan 2006 00:25:10 +1100 -- Adam Conrad <adconrad@0c3.net> Sat, 7 Jan 2006 00:25:10 +1100

2
debian/control vendored

@ -7,7 +7,7 @@ Standards-Version: 3.6.1.0
Package: livecd-rootfs Package: livecd-rootfs
Architecture: all Architecture: all
Depends: debootstrap, rsync, cloop-utils, python-minimal|python, procps Depends: debootstrap, rsync, cloop-utils, python-minimal|python, procps, squashfs-tools
Suggests: partimage Suggests: partimage
Description: construction script for the livecd rootfs Description: construction script for the livecd rootfs
livecd-rootfs provides the script used to create the root filesystem livecd-rootfs provides the script used to create the root filesystem

@ -4,7 +4,10 @@
#### (c) Copyright 2004,2005 Canonical Ltd. All rights reserved. #### #### (c) Copyright 2004,2005 Canonical Ltd. All rights reserved. ####
###################################################################### ######################################################################
# Depends: debootstrap, rsync, cloop-utils, python-minimal|python, procps # Depends: debootstrap, rsync, cloop-utils, python-minimal|python, procps, squashfs-tools
SQUASH_ARCHES="i386 amd64 powerpc"
CLOOP_ARCHES="ia64 hppa sparc"
cleanup() { cleanup() {
for mnt in $MOUNTS ${ROOT}lib/modules/*/volatile; do for mnt in $MOUNTS ${ROOT}lib/modules/*/volatile; do
@ -292,6 +295,8 @@ deb-src ${SECSRCMIRROR} ${STE}-security ${COMP}
ln -s livecd.${FS}.kernel-"${SUBARCH}" livecd.${FS}.kernel ln -s livecd.${FS}.kernel-"${SUBARCH}" livecd.${FS}.kernel
fi fi
livefs_cloop()
{
mkdir -p livecd.mnt mkdir -p livecd.mnt
MOUNTS="$MOUNTS $(pwd)/livecd.mnt" MOUNTS="$MOUNTS $(pwd)/livecd.mnt"
DEV=$(losetup -f); DEV=$(losetup -f);
@ -331,4 +336,20 @@ deb-src ${SECSRCMIRROR} ${STE}-security ${COMP}
fi fi
create_compressed_fs $IMGNAME $COMP > livecd.${FS}.cloop-${fsbs} create_compressed_fs $IMGNAME $COMP > livecd.${FS}.cloop-${fsbs}
done done
}
livefs_squash()
{
mksquashfs ${ROOT} livecd.${FS}.squashfs
chmod 644 livecd.${FS}.squashfs
}
for i in $SQUASH_ARCHES; do
if [ "$ARCH" = "$i" ]; then livefs_squash; fi
done
for i in $CLOOP_ARCHES; do
if [ "$ARCH" = "$i" ]; then livefs_cloop; fi
done
done done

Loading…
Cancel
Save