[Vmdebootstrap-devel] Bug#861069: tweaks for debian-live builds
Steve McIntyre
steve at einval.com
Mon Apr 24 10:56:38 UTC 2017
Package: vmdebootstrap
Version: 1.7-1
Severity: normal
tags: patch
Hi,
I'm using live-wrapper and vmdebootstrap to make debian live builds on
pettersson. There's a few small changes I've made in the customise.lib
script helpers in vmdebootstrap that helped.
First: some packages I'm installing in some image builds are causing
/proc/sys/fs/binfmt_misc to be mounted, so I need to make sure it's
unmounted at cleanup time.
Second: it's annoying to see apt-get update noise output to the
console when I'm running my builds. I'm redirecting everything to log
files. So make apt quieter.
Third: I need to run "apt-get source" in the chroot to be able to get
a list of source packages to match my binary image builds. To make
that possible, I've added a "deb-src" line to match the normal apt
"deb" line.
Patch for the changes here:
--- ./usr/share/vmdebootstrap/common/customise.lib 2016-09-11 16:07:37.000000000 +0100
+++ /./usr/share/vmdebootstrap/common/customise.lib 2017-04-23 21:06:18.657823000 +0100
@@ -30,6 +30,7 @@
ethtool ftp host lsof debian-faq debian-installer-launcher doc-debian \
"
cleanup() {
+ umount ${rootdir}/proc/sys/fs/binfmt_misc > /dev/null 2>&1 || true
umount ${rootdir}/proc
umount ${rootdir}/sys
}
@@ -59,7 +60,8 @@
# handle the apt source
mv ${rootdir}/etc/apt/sources.list.d/base.list ${rootdir}/etc/apt/
echo "deb $1 $2 main contrib non-free" > ${rootdir}/etc/apt/sources.list
- chroot ${rootdir} apt update
+ echo "deb-src $1 $2 main contrib non-free" >> ${rootdir}/etc/apt/sources.list
+ chroot ${rootdir} apt -qq -y update > /dev/null 2>&1
}
remove_daemon_block() {
-- System Information:
Debian Release: 8.7
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.9.0-0.bpo.1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages vmdebootstrap depends on:
ii debootstrap 1.0.67
ii extlinux 3:6.03+dfsg-5+deb8u1
ii kpartx 0.5.0-6+deb8u2
ii parted 3.2-7
ii python-cliapp 1.20140719-1
pn python:any <none>
ii qemu-utils 1:2.1+dfsg-12+deb8u6
Versions of packages vmdebootstrap recommends:
ii grub2-common 2.02~beta2-22+deb8u1
ii qemu-system 1:2.1+dfsg-12+deb8u6
pn qemu-user-static <none>
ii squashfs-tools 1:4.2+20130409-2
vmdebootstrap suggests no packages.
-- no debconf information
More information about the Vmdebootstrap-devel
mailing list