livecd-rootfs/live-build/ubuntu-core/hooks/03-boot_with_systemd.chroot
Michael Vogt 1e373302d7 Import patches-unapplied version 2.265 to ubuntu/vivid-proposed
Imported using git-ubuntu import.

Changelog parent: 79f342f1d0a273ca792c1307907435c6450090c9

New changelog entries:
  * live-build/ubuntu-core/hooks/03-boot_with_systemd.chroot:
    - only modify /etc/default/grub if the file exists
2014-11-03 16:48:41 +00:00

12 lines
342 B
Bash
Executable File

#!/bin/sh -x
# Boot using systemd and disable quiet boot
# to see what is happening.
systemd=/lib/systemd/systemd
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