mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-03-31 04:41:18 +00:00
Import patches-unapplied version 1.146 to ubuntu/maverick
Imported using git-ubuntu import. Changelog parent: 1d8f1dc9d6e068d86d68b96aaa403c95dd52bb64 New changelog entries: * Add a series of checkpoints where the current time is logged.
This commit is contained in:
parent
1d8f1dc9d6
commit
500009f341
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
|||||||
|
livecd-rootfs (1.146) maverick; urgency=low
|
||||||
|
|
||||||
|
* Add a series of checkpoints where the current time is logged.
|
||||||
|
|
||||||
|
-- Colin Watson <cjwatson@ubuntu.com> Fri, 20 Aug 2010 15:55:30 +0100
|
||||||
|
|
||||||
livecd-rootfs (1.145) maverick; urgency=low
|
livecd-rootfs (1.145) maverick; urgency=low
|
||||||
|
|
||||||
* raise inode count during ext2fs build to be able to use the full size of
|
* raise inode count during ext2fs build to be able to use the full size of
|
||||||
|
24
livecd.sh
24
livecd.sh
@ -100,11 +100,19 @@ livefs_ext2()
|
|||||||
chmod 644 livecd.${FSS}.ext2
|
chmod 644 livecd.${FSS}.ext2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
checkpoint()
|
||||||
|
{
|
||||||
|
echo "===== $1 ====="
|
||||||
|
date
|
||||||
|
}
|
||||||
|
|
||||||
if [ $(id -u) != 0 ];then
|
if [ $(id -u) != 0 ];then
|
||||||
echo "must be run as root"
|
echo "must be run as root"
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
checkpoint "Starting build"
|
||||||
|
|
||||||
umask 022
|
umask 022
|
||||||
export TTY=unknown
|
export TTY=unknown
|
||||||
export TERM=vt100
|
export TERM=vt100
|
||||||
@ -330,6 +338,7 @@ Flags: seen
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
dpkg -l livecd-rootfs || true # get our version # in the log.
|
dpkg -l livecd-rootfs || true # get our version # in the log.
|
||||||
|
checkpoint "Bootstrapping base system"
|
||||||
debootstrap --components=$(echo $COMP | sed 's/ /,/g') --arch $TARGETARCH $STE $ROOT $MIRROR
|
debootstrap --components=$(echo $COMP | sed 's/ /,/g') --arch $TARGETARCH $STE $ROOT $MIRROR
|
||||||
|
|
||||||
# Recent dpkg has started complaining pretty loudly if dev/pts isn't
|
# Recent dpkg has started complaining pretty loudly if dev/pts isn't
|
||||||
@ -439,6 +448,7 @@ Pin-Priority: 991
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Create a good sources.list, and finish the install
|
# Create a good sources.list, and finish the install
|
||||||
|
checkpoint "Configuring APT"
|
||||||
echo deb $MIRROR $STE ${COMP} > ${ROOT}etc/apt/sources.list
|
echo deb $MIRROR $STE ${COMP} > ${ROOT}etc/apt/sources.list
|
||||||
echo deb $MIRROR ${STE}-security ${COMP} >> ${ROOT}etc/apt/sources.list
|
echo deb $MIRROR ${STE}-security ${COMP} >> ${ROOT}etc/apt/sources.list
|
||||||
echo deb $MIRROR ${STE}-updates ${COMP} >> ${ROOT}etc/apt/sources.list
|
echo deb $MIRROR ${STE}-updates ${COMP} >> ${ROOT}etc/apt/sources.list
|
||||||
@ -493,12 +503,15 @@ Pin-Priority: 900
|
|||||||
cat /etc/apt/trusted.gpg >> ${ROOT}etc/apt/trusted.gpg
|
cat /etc/apt/trusted.gpg >> ${ROOT}etc/apt/trusted.gpg
|
||||||
|
|
||||||
chroot $ROOT apt-get update
|
chroot $ROOT apt-get update
|
||||||
|
checkpoint "Upgrading"
|
||||||
chroot $ROOT apt-get -y $FORCE_YES --purge dist-upgrade </dev/null
|
chroot $ROOT apt-get -y $FORCE_YES --purge dist-upgrade </dev/null
|
||||||
|
checkpoint "Installing main packages"
|
||||||
chroot $ROOT apt-get -y --purge install $LIST </dev/null
|
chroot $ROOT apt-get -y --purge install $LIST </dev/null
|
||||||
|
|
||||||
# launchpad likes to put dependencies of seeded packages in tasks along with the
|
# launchpad likes to put dependencies of seeded packages in tasks along with the
|
||||||
# actual seeded packages. In general, this isn't an issue. With updated kernels
|
# actual seeded packages. In general, this isn't an issue. With updated kernels
|
||||||
# and point-releases, though, we end up with extra header packages:
|
# and point-releases, though, we end up with extra header packages:
|
||||||
|
checkpoint "Cleaning up kernel headers"
|
||||||
chroot ${ROOT} dpkg -l linux-headers-2\* | grep ^i | awk '{print $2}' \
|
chroot ${ROOT} dpkg -l linux-headers-2\* | grep ^i | awk '{print $2}' \
|
||||||
> livecd.${FSS}.manifest-headers
|
> livecd.${FSS}.manifest-headers
|
||||||
chroot ${ROOT} dpkg -l linux-headers-\* | grep ^i | awk '{print $2}' \
|
chroot ${ROOT} dpkg -l linux-headers-\* | grep ^i | awk '{print $2}' \
|
||||||
@ -515,6 +528,7 @@ Pin-Priority: 900
|
|||||||
|
|
||||||
chroot ${ROOT} dpkg-query -W --showformat='${Package} ${Version}\n' \
|
chroot ${ROOT} dpkg-query -W --showformat='${Package} ${Version}\n' \
|
||||||
> livecd.${FSS}.manifest-desktop
|
> livecd.${FSS}.manifest-desktop
|
||||||
|
checkpoint "Installing live packages"
|
||||||
chroot $ROOT apt-get -y --purge install $LIVELIST </dev/null
|
chroot $ROOT apt-get -y --purge install $LIVELIST </dev/null
|
||||||
case $FS in
|
case $FS in
|
||||||
edubuntu)
|
edubuntu)
|
||||||
@ -529,6 +543,9 @@ Pin-Priority: 900
|
|||||||
esac
|
esac
|
||||||
chroot ${ROOT} dpkg-query -W --showformat='${Package} ${Version}\n' \
|
chroot ${ROOT} dpkg-query -W --showformat='${Package} ${Version}\n' \
|
||||||
> livecd.${FSS}.manifest
|
> livecd.${FSS}.manifest
|
||||||
|
|
||||||
|
checkpoint "Cleaning up"
|
||||||
|
|
||||||
kill_users
|
kill_users
|
||||||
|
|
||||||
chroot $ROOT /etc/cron.daily/mlocate || true
|
chroot $ROOT /etc/cron.daily/mlocate || true
|
||||||
@ -681,12 +698,14 @@ Pin-Priority: 550
|
|||||||
rm -f ${ROOT}/var/cache/debconf/*-old
|
rm -f ${ROOT}/var/cache/debconf/*-old
|
||||||
|
|
||||||
# show the size of directories in /usr/share/doc
|
# show the size of directories in /usr/share/doc
|
||||||
|
checkpoint "Checking size of /usr/share/doc"
|
||||||
echo BEGIN docdirs
|
echo BEGIN docdirs
|
||||||
(cd $ROOT && find usr/share/doc -maxdepth 1 -type d | xargs du -s | sort -nr)
|
(cd $ROOT && find usr/share/doc -maxdepth 1 -type d | xargs du -s | sort -nr)
|
||||||
echo END docdirs
|
echo END docdirs
|
||||||
|
|
||||||
# search for duplicate files, write the summary to stdout,
|
# search for duplicate files, write the summary to stdout,
|
||||||
if which fdupes >/dev/null 2>&1; then
|
if which fdupes >/dev/null 2>&1; then
|
||||||
|
checkpoint "Checking for duplicate files"
|
||||||
echo "first line: <total size for dupes> <different dupes> <all dupes>"
|
echo "first line: <total size for dupes> <different dupes> <all dupes>"
|
||||||
echo "data lines: <size for dupes> <number of dupes> <file size> <filename> [<filename> ...]"
|
echo "data lines: <size for dupes> <number of dupes> <file size> <filename> [<filename> ...]"
|
||||||
echo BEGIN fdupes
|
echo BEGIN fdupes
|
||||||
@ -710,10 +729,12 @@ Pin-Priority: 550
|
|||||||
# <http://lkml.org/lkml/2006/6/16/163>. However, we would like to cache this
|
# <http://lkml.org/lkml/2006/6/16/163>. However, we would like to cache this
|
||||||
# number for partman's sufficient free space check and ubiquity's
|
# number for partman's sufficient free space check and ubiquity's
|
||||||
# installation progress calculation.
|
# installation progress calculation.
|
||||||
|
checkpoint "Calculating total size"
|
||||||
printf $(du -sx --block-size=1 ${ROOT} | cut -f1) > livecd.${FSS}.size || true
|
printf $(du -sx --block-size=1 ${ROOT} | cut -f1) > livecd.${FSS}.size || true
|
||||||
|
|
||||||
|
|
||||||
# Build our images
|
# Build our images
|
||||||
|
checkpoint "Building image"
|
||||||
if [ "$IMAGEFORMAT" = "ext2" ] || [ "$IMAGEFORMAT" = "ext3" ]; then
|
if [ "$IMAGEFORMAT" = "ext2" ] || [ "$IMAGEFORMAT" = "ext3" ]; then
|
||||||
livefs_ext2
|
livefs_ext2
|
||||||
else
|
else
|
||||||
@ -732,6 +753,7 @@ Pin-Priority: 550
|
|||||||
case $FS in
|
case $FS in
|
||||||
edubuntu-dvd)
|
edubuntu-dvd)
|
||||||
if [ "$TARGETARCH" = "i386" ]; then
|
if [ "$TARGETARCH" = "i386" ]; then
|
||||||
|
checkpoint "Building LTSP chroot"
|
||||||
ltsp-build-client --base $(pwd) --mirror $MIRROR --arch $TARGETARCH --dist $STE --chroot ltsp-live --purge-chroot --skipimage
|
ltsp-build-client --base $(pwd) --mirror $MIRROR --arch $TARGETARCH --dist $STE --chroot ltsp-live --purge-chroot --skipimage
|
||||||
mkdir -p $(pwd)/images
|
mkdir -p $(pwd)/images
|
||||||
mksquashfs $(pwd)/ltsp-live $(pwd)/images/ltsp-live.img -noF -noD -noI -no-exports -e cdrom
|
mksquashfs $(pwd)/ltsp-live $(pwd)/images/ltsp-live.img -noF -noD -noI -no-exports -e cdrom
|
||||||
@ -747,3 +769,5 @@ Pin-Priority: 550
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
checkpoint "Done"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user