diff --git a/debian/changelog b/debian/changelog index 0875fa04..0b2d8a37 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +livecd-rootfs (2.265) UNRELEASED; urgency=low + + * live-build/ubuntu-core/hooks/03-boot_with_systemd.chroot: + - only modify /etc/default/grub if the file exists + + -- Michael Vogt Mon, 03 Nov 2014 17:10:57 +0100 + livecd-rootfs (2.264) vivid; urgency=low * live-build/auto/config: diff --git a/live-build/ubuntu-core/hooks/03-boot_with_systemd.chroot b/live-build/ubuntu-core/hooks/03-boot_with_systemd.chroot index 9c5e4a8c..f19164f0 100755 --- a/live-build/ubuntu-core/hooks/03-boot_with_systemd.chroot +++ b/live-build/ubuntu-core/hooks/03-boot_with_systemd.chroot @@ -3,7 +3,9 @@ # Boot using systemd and disable quiet boot # to see what is happening. systemd=/lib/systemd/systemd -[ -f /etc/default/grub ] && sed -i \ - -e "s,^\\([ ]*GRUB_CMDLINE_LINUX\\)=\"\"$,\\1=\"init=$systemd\",g" \ - -e 's,^\([ ]*GRUB_CMDLINE_LINUX_DEFAULT\)="quiet splash",\1="",g' \ +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