mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-08 04:15:24 +01:00
Use devtmpfs, and improve finalize_fhs.sh
With this, finalize_fhs.sh can be rerun as needed, e.g. when rebooting. Also, the preferred nameserver will persist after DHCP. Thanks to devtmpfs, we no longer need to manage /dev once Linux is up.
This commit is contained in:
parent
133c05426c
commit
8341c4e089
4 changed files with 20 additions and 9 deletions
|
|
@ -16,7 +16,6 @@ if [ "${KERNEL_BOOTSTRAP}" = True ]; then
|
|||
find / -xdev -type d -printf "dir %p %m %U %G\n" >> /initramfs.list
|
||||
find / -xdev -type f -printf "file %p %p %m %U %G\n" >> /initramfs.list
|
||||
find / -xdev -type l -printf "slink %p %l %m %U %G\n" >> /initramfs.list
|
||||
find / -xdev -type c -or -type b -not -name "ram*" -printf "nod %p %m %U %G %y " -exec stat -c '%Hr %Lr' {} \; >> /initramfs.list
|
||||
kexec-linux "/dev/ram1" "/boot/linux-4.9.10" "!$(command -v gen_init_cpio) /initramfs.list"
|
||||
else
|
||||
mkdir /etc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue