Replace a blind cp with a more tactful apt-cdrom command.

ubuntu/focal
Simon Quigley 7 years ago
parent 6ce083f094
commit 3a21094494

1
debian/changelog vendored

@ -1,6 +1,7 @@
calamares-settings-ubuntu (9) UNRELEASED; urgency=medium
* Import additional translations from Weblate.
* Replace a blind cp with a more tactful apt-cdrom command.
-- Simon Quigley <tsimonq2@ubuntu.com> Sun, 15 Jul 2018 03:56:07 -0500

@ -2,5 +2,5 @@ dontChroot: true
timeout: 300
script:
- "cp /cdrom/casper/vmlinuz @@ROOT@@/boot/vmlinuz-$(uname -r)"
- "[ -d /sys/firmware/efi ] && cp /etc/apt/sources.list @@ROOT@@/etc/apt/sources.list && chroot @@ROOT@@ sed -e '/deb http/ s/^#*/#/' -i /etc/apt/sources.list && chroot @@ROOT@@ apt update && chroot @@ROOT@@ apt -y install grub-efi-amd64-bin && chroot @@ROOT@@ sed -i 's/#deb/deb/' /etc/apt/sources.list && sed -i '/deb cdrom/d' @@ROOT@@/etc/apt/sources.list || exit 0"
- "[ -d /sys/firmware/efi ] && chroot @@ROOT@@ apt-cdrom add -d=/media/apt/ && chroot @@ROOT@@ sed -e '/deb http/ s/^#*/#/' -i /etc/apt/sources.list && chroot @@ROOT@@ apt update && chroot @@ROOT@@ apt -y install grub-efi-amd64-bin && chroot @@ROOT@@ sed -i 's/#deb/deb/' /etc/apt/sources.list && sed -i '/deb cdrom/d' @@ROOT@@/etc/apt/sources.list || exit 0"
- "for i in `ls @@ROOT@@/home/`; do rm @@ROOT@@/home/$i/Desktop/calamares.desktop || exit 0; done"

Loading…
Cancel
Save