initrd rebuild
This commit is contained in:
@@ -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
|
||||
}
|
||||
--
|
||||
@@ -16,6 +16,7 @@
|
||||
<Patches>
|
||||
<Patch level="1">0001-Adapted-to-Pisi-Linux.patch</Patch>
|
||||
<Patch level="1">0002-Made-initrd-follow-the-quite-boot-parameter.patch</Patch>
|
||||
<Patch level="1">0003-Improvements-for-continuous-live-boot.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
@@ -31,6 +32,13 @@
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="5">
|
||||
<Date>2020-09-09</Date>
|
||||
<Version>1.1.4</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Berk Çakar</Name>
|
||||
<Email>berk2238@hotmail.com</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2020-09-08</Date>
|
||||
<Version>1.1.4</Version>
|
||||
|
||||
Reference in New Issue
Block a user