mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-18 09:15:23 +01:00
Replace Fiwix filelist with parsing builder-hex0's FS structures
And while we're at it, use a more sustainable way of getting the address of the next file to be written to. Since builder-hex0 doesn't distinguish directories from zero-length files, this has a limitation that it won't copy any zero-length files or empty directories. Only one such file is important for the bootstrap process (mes/config.h), which is recreated using an improve step.
This commit is contained in:
parent
49f5520143
commit
5945bdc1e8
7 changed files with 51 additions and 259 deletions
|
|
@ -10,13 +10,14 @@ set -e
|
|||
|
||||
# Perform the actual kexec
|
||||
if [ "${KERNEL_BOOTSTRAP}" = True ]; then
|
||||
mv "/High Level Prototypes" "/High_Level_Prototypes"
|
||||
sync
|
||||
# We don't use the gen_initramfs_list.sh script because it is so *SLOW*
|
||||
# This emulates the same thing it does
|
||||
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
|
||||
kexec-linux "/dev/ram1" "/boot/linux-4.9.10" "!$(command -v gen_init_cpio) /initramfs.list"
|
||||
kexec-linux "/dev/ram1" "/boot/linux-4.9.10" "!gen_init_cpio /initramfs.list | gzip -c"
|
||||
else
|
||||
mkdir /etc
|
||||
# kexec time
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue