mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-22 10:51:11 +00:00
* live-build/functions: mount tmpfs on /var/cache/apt and var/lib/apt, so
we don't have to leave empty space in our derivative images for packages that have been downloaded/installed/removed. This normally isn't relevant for the installed system, since the root filesystem will auto-expand in place on the target disk, but lets us ship smaller images. * live-build/functions: also call 'apt-get update' after mounting the blank /var/lib/apt.
This commit is contained in:
parent
ece4c400d4
commit
a246300940
13
debian/changelog
vendored
13
debian/changelog
vendored
@ -1,3 +1,16 @@
|
||||
livecd-rootfs (2.454) UNRELEASED; urgency=medium
|
||||
|
||||
* live-build/functions: mount tmpfs on /var/cache/apt and var/lib/apt, so
|
||||
we don't have to leave empty space in our derivative images for packages
|
||||
that have been downloaded/installed/removed. This normally isn't
|
||||
relevant for the installed system, since the root filesystem will
|
||||
auto-expand in place on the target disk, but lets us ship smaller
|
||||
images.
|
||||
* live-build/functions: also call 'apt-get update' after mounting the
|
||||
blank /var/lib/apt.
|
||||
|
||||
-- Steve Langasek <steve.langasek@ubuntu.com> Tue, 12 Sep 2017 14:33:02 -0700
|
||||
|
||||
livecd-rootfs (2.453) artful; urgency=medium
|
||||
|
||||
[ Chris Glass ]
|
||||
|
@ -83,8 +83,11 @@ setup_mountpoint() {
|
||||
mount proc-live -t proc "$mountpoint/proc"
|
||||
mount sysfs-live -t sysfs "$mountpoint/sys"
|
||||
mount -t tmpfs none "$mountpoint/tmp"
|
||||
mount -t tmpfs none "$mountpoint/var/lib/apt"
|
||||
mount -t tmpfs none "$mountpoint/var/cache/apt"
|
||||
mv "$mountpoint/etc/resolv.conf" resolv.conf.tmp
|
||||
cp /etc/resolv.conf "$mountpoint/etc/resolv.conf"
|
||||
chroot "$mountpoint" apt-get update
|
||||
|
||||
}
|
||||
|
||||
|
@ -41,6 +41,8 @@ umount "binary/boot/squashfs.dir/proc"
|
||||
umount "binary/boot/squashfs.dir/sys"
|
||||
umount -R "binary/boot/squashfs.dir/dev"
|
||||
umount "binary/boot/squashfs.dir/tmp"
|
||||
umount "binary/boot/squashfs.dir/var/lib/apt"
|
||||
umount "binary/boot/squashfs.dir/var/cache/apt"
|
||||
|
||||
squashfs_f="${PWD}/livecd.ubuntu-cpc.squashfs"
|
||||
squashfs_f_manifest="${squashfs_f}.manifest"
|
||||
|
Loading…
x
Reference in New Issue
Block a user