From 9e312edd325b20653101a2c359e8c5117a7b626a Mon Sep 17 00:00:00 2001 From: Sergio Schvezov Date: Thu, 25 Jun 2015 08:37:46 -0300 Subject: [PATCH] why did desktop next ever build for azure? --- .../500-move-kernel-to-device-tar.binary | 26 ------------------- 1 file changed, 26 deletions(-) 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 index ab19b2e5..31c6092f 100644 --- 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 @@ -71,28 +71,6 @@ fi 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 @@ -105,8 +83,4 @@ rm -rf $TMPDIR 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 )