mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-04-27 19:11:14 +00:00
* 03-boot_with_systemd.chroot: Check if /etc/default/grub exists
(temporary fix which to stop build failing - grub will be unconfigured though. * 05-create_minimal_fstab.chroot: Configure a minimal /etc/fstab to allow systemd to mount the rootfs read-write.
This commit is contained in:
parent
609ee1a835
commit
5182d896dc
@ -3,7 +3,7 @@
|
|||||||
# Boot using systemd and disable quiet boot
|
# Boot using systemd and disable quiet boot
|
||||||
# to see what is happening.
|
# to see what is happening.
|
||||||
systemd=/lib/systemd/systemd
|
systemd=/lib/systemd/systemd
|
||||||
sed -i \
|
[ -f /etc/default/grub ] && sed -i \
|
||||||
-e "s,^\\([ ]*GRUB_CMDLINE_LINUX\\)=\"\"$,\\1=\"init=$systemd\",g" \
|
-e "s,^\\([ ]*GRUB_CMDLINE_LINUX\\)=\"\"$,\\1=\"init=$systemd\",g" \
|
||||||
-e 's,^\([ ]*GRUB_CMDLINE_LINUX_DEFAULT\)="quiet splash",\1="",g' \
|
-e 's,^\([ ]*GRUB_CMDLINE_LINUX_DEFAULT\)="quiet splash",\1="",g' \
|
||||||
/etc/default/grub
|
/etc/default/grub
|
||||||
|
6
live-build/ubuntu-core/hooks/05-create_minimal_fstab.chroot
Executable file
6
live-build/ubuntu-core/hooks/05-create_minimal_fstab.chroot
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh -x
|
||||||
|
|
||||||
|
cat >>/etc/fstab<<EOT
|
||||||
|
# Minimal setup required for systemd to provide a r/w FS
|
||||||
|
/dev/root / rootfs defaults 0 0
|
||||||
|
EOT
|
Loading…
x
Reference in New Issue
Block a user