diff --git a/debian/changelog b/debian/changelog index ae7faac3..fa1712b1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,14 @@ +livecd-rootfs (2.312) wily; urgency=low + + [ Michael Vogt ] + * live-build/ubuntu-core/hooks/500-move-kernel-to-device-tar.binary: + - ignore /vmlinu?, /initrd.img symlinks when building the boot assets + + [ Sebastien Bacher ] + * Symlink some desktop-next hooks to ubuntu-core to avoid duplication + + -- Sebastien Bacher Tue, 09 Jun 2015 17:56:23 +0200 + livecd-rootfs (2.311) wily; urgency=medium * Updates users and groups for desktop next diff --git a/live-build/ubuntu-core/hooks/500-move-kernel-to-device-tar.binary b/live-build/ubuntu-core/hooks/500-move-kernel-to-device-tar.binary index ed75ddc6..f6b77acf 100644 --- a/live-build/ubuntu-core/hooks/500-move-kernel-to-device-tar.binary +++ b/live-build/ubuntu-core/hooks/500-move-kernel-to-device-tar.binary @@ -25,18 +25,18 @@ mkdir -p $TMPDIR/assets/ cp -ar --parent lib/firmware/ $TMPDIR/system/ # new assets handling + # FIXME: + # - how to keep version information (and do we care) cp -ar boot/vmlinu?-* $TMPDIR/assets/vmlinuz cp -ar boot/initrd.img-* $TMPDIR/assets/initrd.img - cp -ar boot/vmlinu?-* boot/initrd.img-* boot/abi-* boot/System.map-* $TMPDIR/assets/ + cp -ar boot/abi-* boot/System.map-* $TMPDIR/assets/ dtbs=$(find lib/firmware -type d -name 'device-tree' -print0) - [ -n "$dtbs" ] && mv "$dtbs" $TMPDIR/assets/dtbs - - if [ -e vmlinu? ] && [ -e initrd.img ]; then - cp -ar --parent vmlinu? initrd.img $TMPDIR/assets - cp -ar --parent vmlinu? initrd.img $TMPDIR/assets + if [ -n "$dtbs" ]; then + mv "$dtbs" $TMPDIR/assets/dtbs fi ) + # create hardware.yaml for u-boot # this assumes armh == u-boot # and all others grub diff --git a/live-build/ubuntu-desktop-next/hooks/03-boot_with_systemd.chroot b/live-build/ubuntu-desktop-next/hooks/03-boot_with_systemd.chroot deleted file mode 100755 index f19164f0..00000000 --- a/live-build/ubuntu-desktop-next/hooks/03-boot_with_systemd.chroot +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -x - -# Boot using systemd and disable quiet boot -# to see what is happening. -systemd=/lib/systemd/systemd -if [ -f /etc/default/grub ]; then - sed -i \ - -e "s,^\\([ ]*GRUB_CMDLINE_LINUX\\)=\"\"$,\\1=\"init=$systemd\",g" \ - -e 's,^\([ ]*GRUB_CMDLINE_LINUX_DEFAULT\)="quiet splash",\1="",g' \ - /etc/default/grub -fi diff --git a/live-build/ubuntu-desktop-next/hooks/03-boot_with_systemd.chroot b/live-build/ubuntu-desktop-next/hooks/03-boot_with_systemd.chroot new file mode 120000 index 00000000..53266115 --- /dev/null +++ b/live-build/ubuntu-desktop-next/hooks/03-boot_with_systemd.chroot @@ -0,0 +1 @@ +../../ubuntu-core/hooks/03-boot_with_systemd.chroot \ No newline at end of file diff --git a/live-build/ubuntu-desktop-next/hooks/04-configure_network.chroot b/live-build/ubuntu-desktop-next/hooks/04-configure_network.chroot deleted file mode 100755 index d96d9aa8..00000000 --- a/live-build/ubuntu-desktop-next/hooks/04-configure_network.chroot +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -x - -if=eth0 - -# Manually configure the first ethernet device -cat >/etc/network/interfaces.d/"$if"<>/etc/fstab<$PREFIX/usr/local/bin/no-apt < $TMPDIR/hardware.yaml << EOF -kernel: assets/vmlinuz -initrd: assets/initrd.img -partiton-layout: system-AB -EOF - -# arch specific ones -if [ "$ARCH" = "armhf" ]; then - cat >> $TMPDIR/hardware.yaml << EOF -dtbs: assets/dtbs -bootloader: u-boot -EOF -else - cat >> $TMPDIR/hardware.yaml << EOF -bootloader: grub -EOF -fi -) - -# and tar it up -( - cd $TMPDIR - tar -c -z -f $HERE/device.tar.gz system assets hardware.yaml -) - -# now build the azure device tarball by adding walinuxagent -if [ -e binary/boot/filesystem.dir/var/lib/dpkg/info/walinuxagent.list ]; -then -( - cd binary/boot/filesystem.dir - while read line; do - line=$(echo $line |cut -d/ -f2-) - if [ -e "$line" ] && [ ! -d "$line" ]; then - cp -ar --parent $line $TMPDIR/system - fi - done < var/lib/dpkg/info/walinuxagent.list - # created by walinuxagent postinst/dh-systemd - cp -ar --parent var/lib/systemd/deb-systemd-helper-enabled/walinuxagent* $TMPDIR/system - cp -ar --parent etc/systemd/system/multi-user.target.wants/walinuxagent* $TMPDIR/system - mkdir -p $TMPDIR/system/var/lib/waagent -) -# and tar it up -( - cd $TMPDIR - tar -c -z -f $HERE/device-azure.tar.gz system assets hardware.yaml -) -fi -rm -rf $TMPDIR - -# remove files from the root filesystem -(cd binary/boot/filesystem.dir - rm -f boot/vmlinu?-* - rm -f boot/initrd.img-* - rm -f boot/abi-* - rm -f boot/System.map-* - rm -f initrd.img - rm -f vmlinu? - rm -rf lib/modules - rm -rf lib/firmware - # remove walinuxagent - if [ -e var/lib/dpkg/info/walinuxagent.list ]; then - chroot . dpkg --purge walinuxagent || true - fi -) diff --git a/live-build/ubuntu-desktop-next/hooks/500-move-kernel-to-device-tar.binary b/live-build/ubuntu-desktop-next/hooks/500-move-kernel-to-device-tar.binary new file mode 120000 index 00000000..90bd9328 --- /dev/null +++ b/live-build/ubuntu-desktop-next/hooks/500-move-kernel-to-device-tar.binary @@ -0,0 +1 @@ +../../ubuntu-core/hooks/500-move-kernel-to-device-tar.binary \ No newline at end of file