mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-09 20:28:08 +00:00
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
12 lines
342 B
Bash
Executable File
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
|