From 6627b99d730d61b48a107f066532b4e18e760025 Mon Sep 17 00:00:00 2001 From: James Hunt Date: Tue, 5 Aug 2014 09:22:45 +0100 Subject: [PATCH] * More haste, less speed: - Perform in-place edit. - Allow variable expansion. --- live-build/ubuntu-core/hooks/03-boot_with_systemd.chroot | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 d8f4c7db..7ae143a4 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,7 @@ # Boot using systemd and disable quiet boot # to see what is happening. systemd=/lib/systemd/systemd -sed \ - -e 's,^\([ ]*GRUB_CMDLINE_LINUX\)=""$,\1="init=$systemd",g' \ - -e 's,^\([ ]*GRUB_CMDLINE_LINUX_DEFAULT\)="quiet splash",\1="",g' \ +sed -i \ + -e "s,^\([ ]*GRUB_CMDLINE_LINUX\)=\"\"$,\1=\"init=$systemd\",g" \ + -e "s,^\([ ]*GRUB_CMDLINE_LINUX_DEFAULT\)=\"quiet splash\",\1=\"\",g" \ /etc/default/grub