livecd-rootfs/live-build/ubuntu-core/hooks/03-boot_with_systemd.chroot
Stéphane Graber c66e2a7c05 Import patches-unapplied version 2.239 to ubuntu/utopic-proposed
Imported using git-ubuntu import.

Changelog parent: 4b23d3370bf92ee0122fa50410bba8cbe5b9ca16

New changelog entries:
  * Revert part of the last change to ship the systemd hook as .chroot
    and not .binary since it doesn't appear to be running properly as a
    binary hook.
2014-08-05 18:08:47 +00:00

10 lines
321 B
Bash
Executable File

#!/bin/sh -x
# 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' \
/etc/default/grub