Remove walinuxagent

ubuntu/yakkety
Sergio Schvezov 10 years ago
parent 59a6218557
commit c3b8dc32b1

@ -386,13 +386,7 @@ case $PROJECT in
#add_task install minimal #add_task install minimal
add_task install ubuntu-core add_task install ubuntu-core
# add special azure package
case $ARCH in case $ARCH in
amd64)
# will be removed later when the azure
# specific device tarfile is created
add_package install walinuxagent
;;
i386) i386)
# efi support can go once the task # efi support can go once the task
# header is available for grub-efi-ia32-bin # header is available for grub-efi-ia32-bin

@ -71,28 +71,10 @@ fi
tar -c -z -f $HERE/device.tar.gz system assets hardware.yaml tar -c -z -f $HERE/device.tar.gz system assets hardware.yaml
) )
# now build the azure device tarball by adding walinuxagent # now build the azure device tarball
if [ -e binary/boot/filesystem.dir/var/lib/dpkg/info/walinuxagent.list ]; # this should go away once we have a custom grub.cfg for azure
then cp $HERE/device.tar.gz $HERE/device-azure.tar.gz
(
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 rm -rf $TMPDIR
# remove files from the root filesystem # remove files from the root filesystem
@ -105,8 +87,4 @@ rm -rf $TMPDIR
rm -f vmlinu? rm -f vmlinu?
rm -rf lib/modules rm -rf lib/modules
rm -rf lib/firmware rm -rf lib/firmware
# remove walinuxagent
if [ -e var/lib/dpkg/info/walinuxagent.list ]; then
chroot . dpkg --purge walinuxagent || true
fi
) )

Loading…
Cancel
Save