diff --git a/kernel/tools/initrd/files/0003-Improvements-for-continuous-live-boot.patch b/kernel/tools/initrd/files/0003-Improvements-for-continuous-live-boot.patch new file mode 100644 index 00000000..d7fe2177 --- /dev/null +++ b/kernel/tools/initrd/files/0003-Improvements-for-continuous-live-boot.patch @@ -0,0 +1,28 @@ +diff --git a/src/functions.sh b/src/functions.sh +index e296e2c..46bde4f 100644 +--- a/src/functions.sh ++++ b/src/functions.sh +@@ -7,7 +7,12 @@ generate_rootfs(){ + /busybox mkdir /run + /busybox --install -s /bin + msg 'Creating initrd' +- /busybox mkdir /dev || true ++ # For some reason, busybox is able to create (?) ++ # all of the directories above -which are already ++ # included in 'baselayout' together with /dev- but ++ # not /dev. So, pass the -p parameter for at least ++ # skipping the error message. ++ /busybox mkdir -p /dev || true + /busybox mdev -s 2>/dev/null || true + } + run_modules(){ +@@ -33,7 +38,7 @@ mount_handler(){ + parse_cmdline(){ + for i in $(cat /proc/cmdline) + do +- echo export $(echo $i | tr -d '-.,\!\(\[\{') >> /env ++ echo export $(echo $i | tr '\000' ' ' | awk -F= '{gsub(/\.|[,]|\-|[!]|\(|\[|\{/,"_",$1)}1' OFS==) >> /env + done + . /env || true + } +-- diff --git a/kernel/tools/initrd/pspec.xml b/kernel/tools/initrd/pspec.xml index b249da6d..7fd00721 100644 --- a/kernel/tools/initrd/pspec.xml +++ b/kernel/tools/initrd/pspec.xml @@ -16,6 +16,7 @@ 0001-Adapted-to-Pisi-Linux.patch 0002-Made-initrd-follow-the-quite-boot-parameter.patch + 0003-Improvements-for-continuous-live-boot.patch @@ -31,6 +32,13 @@ + + 2020-09-09 + 1.1.4 + Rebuild + Berk Çakar + berk2238@hotmail.com + 2020-09-08 1.1.4