~ubuntu-core-dev/livecd-rootfs/trunk

« back to all changes in this revision

Viewing changes to live-build/ubuntu-desktop-next/hooks/03-boot_with_systemd.chroot

  • Committer: Balint Reczey
  • Date: 2019-01-31 08:14:49 UTC
  • Revision ID: balint.reczey@canonical.com-20190131081449-ptfnz0r4c2emh0nt
Moved to git at https://git.launchpad.net/livecd-rootfs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh -x
2
 
 
3
 
# Boot using systemd and disable quiet boot
4
 
# to see what is happening.
5
 
systemd=/lib/systemd/systemd
6
 
if [ -f /etc/default/grub ]; then
7
 
    sed -i \
8
 
        -e "s,^\\([     ]*GRUB_CMDLINE_LINUX\\)=\"\"$,\\1=\"init=$systemd\",g" \
9
 
        -e 's,^\([      ]*GRUB_CMDLINE_LINUX_DEFAULT\)="quiet splash",\1="",g' \
10
 
    /etc/default/grub
11
 
fi