mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-22 10:51:11 +00:00
Simple squashfs support
This commit is contained in:
parent
073c79e802
commit
13930b49ed
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -1,6 +1,8 @@
|
||||
livecd-rootfs (0.27) UNRELEASED; urgency=low
|
||||
|
||||
* 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
|
||||
|
||||
|
2
debian/control
vendored
2
debian/control
vendored
@ -7,7 +7,7 @@ Standards-Version: 3.6.1.0
|
||||
|
||||
Package: livecd-rootfs
|
||||
Architecture: all
|
||||
Depends: debootstrap, rsync, cloop-utils, python-minimal|python, procps
|
||||
Depends: debootstrap, rsync, cloop-utils, python-minimal|python, procps, squashfs-tools
|
||||
Suggests: partimage
|
||||
Description: construction script for the livecd rootfs
|
||||
livecd-rootfs provides the script used to create the root filesystem
|
||||
|
23
livecd.sh
23
livecd.sh
@ -4,7 +4,10 @@
|
||||
#### (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() {
|
||||
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
|
||||
fi
|
||||
|
||||
livefs_cloop()
|
||||
{
|
||||
mkdir -p livecd.mnt
|
||||
MOUNTS="$MOUNTS $(pwd)/livecd.mnt"
|
||||
DEV=$(losetup -f);
|
||||
@ -331,4 +336,20 @@ deb-src ${SECSRCMIRROR} ${STE}-security ${COMP}
|
||||
fi
|
||||
create_compressed_fs $IMGNAME $COMP > livecd.${FS}.cloop-${fsbs}
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user