From 5bc52b48769f2082c67ad4d3b33ab4fb77ff04b8 Mon Sep 17 00:00:00 2001 From: Dimitri John Ledkov Date: Mon, 22 Feb 2016 19:17:15 +0000 Subject: [PATCH] Import patches-unapplied version 2.380 to ubuntu/xenial-proposed Imported using git-ubuntu import. Changelog parent: 8027f4d9dfa5da2553557a5cb727f301166396ac New changelog entries: [ Ben Howard ] * live-build/ubuntu-cpc/hooks/042-vagrant.binary: add serial device for Vagrant images (LP: #1546108). [ Daniel Watkins ] * Refactor ubuntu-cpc hooks to hard-code producing an 'ext4' rootfs, which is used outside of the livecd-rootfs build process (specifically for EC2 publication). --- debian/changelog | 13 +++++++++++++ live-build/auto/config | 10 ++++++++-- live-build/ubuntu-cpc/hooks/030-root-tarball.binary | 3 +++ live-build/ubuntu-cpc/hooks/042-vagrant.binary | 5 +++++ 4 files changed, 29 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 066a02c7..1dcec27d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,16 @@ +livecd-rootfs (2.380) xenial; urgency=medium + + [ Ben Howard ] + * live-build/ubuntu-cpc/hooks/042-vagrant.binary: add serial device for + Vagrant images (LP: #1546108). + + [ Daniel Watkins ] + * Refactor ubuntu-cpc hooks to hard-code producing an 'ext4' rootfs, which + is used outside of the livecd-rootfs build process (specifically for EC2 + publication). + + -- Dimitri John Ledkov Mon, 22 Feb 2016 19:17:15 +0000 + livecd-rootfs (2.379) xenial; urgency=medium * add /var/lib/systemd/rfkill to pre-created dirs to use as writable diff --git a/live-build/auto/config b/live-build/auto/config index 0935826c..a471a680 100755 --- a/live-build/auto/config +++ b/live-build/auto/config @@ -103,7 +103,7 @@ add_binary_hook () case $PROJECT in ubuntu-cpc) - IMAGEFORMAT=plain + IMAGEFORMAT=ext4 ;; esac @@ -117,7 +117,13 @@ case $IMAGEFORMAT in COMPONENTS='main restricted universe multiverse' ;; *) - add_package live jasper + case $PROJECT in + ubuntu-cpc) + ;; + *) + add_package live jasper + ;; + esac ;; esac ;; diff --git a/live-build/ubuntu-cpc/hooks/030-root-tarball.binary b/live-build/ubuntu-cpc/hooks/030-root-tarball.binary index 28d920ce..f3e1c9e5 100755 --- a/live-build/ubuntu-cpc/hooks/030-root-tarball.binary +++ b/live-build/ubuntu-cpc/hooks/030-root-tarball.binary @@ -7,6 +7,9 @@ fi . /build/config/functions +mkdir binary/boot/filesystem.dir +cp -a chroot/* binary/boot/filesystem.dir + setup_mountpoint binary/boot/filesystem.dir chroot binary/boot/filesystem.dir dpkg-divert --local --rename /usr/sbin/grub-probe diff --git a/live-build/ubuntu-cpc/hooks/042-vagrant.binary b/live-build/ubuntu-cpc/hooks/042-vagrant.binary index 6bf40dc3..618d3f9c 100755 --- a/live-build/ubuntu-cpc/hooks/042-vagrant.binary +++ b/live-build/ubuntu-cpc/hooks/042-vagrant.binary @@ -112,6 +112,11 @@ Vagrant.configure("2") do |config| config.ssh.username = "ubuntu" config.ssh.password = "${ubuntu_user_pass}" config.vm.synced_folder '.', '/vagrant', disabled: true + + # Needed due to the default commandline, which expects a console. + config.customize [ "modifyvm", :id, "--uart1", "0x3F8", "4" ] + config.customize [ "modifyvm", :id, "--uartmode1", "file", "console.log" ] + end EOF