0003-Improvements-for-continuous-live-boot.patch 884 B

1234567891011121314151617181920212223242526272829
  1. diff --git a/src/functions.sh b/src/functions.sh
  2. index e296e2c..46bde4f 100644
  3. --- a/src/functions.sh
  4. +++ b/src/functions.sh
  5. @@ -7,7 +7,12 @@ generate_rootfs(){
  6. /busybox mkdir /run
  7. /busybox --install -s /bin
  8. msg 'Creating initrd'
  9. - /busybox mkdir /dev || true
  10. + # For some reason, busybox is able to create (?)
  11. + # all of the directories above -which are already
  12. + # included in 'baselayout' together with /dev- but
  13. + # not /dev. So, pass the -p parameter for at least
  14. + # skipping the error message.
  15. + /busybox mkdir -p /dev || true
  16. /busybox mdev -s 2>/dev/null || true
  17. }
  18. run_modules(){
  19. @@ -33,7 +38,7 @@ mount_handler(){
  20. parse_cmdline(){
  21. for i in $(cat /proc/cmdline)
  22. do
  23. - echo export $(echo $i | tr -d '-.,\!\(\[\{') >> /env
  24. + echo export $(echo $i | tr '\000' ' ' | awk -F= '{gsub(/\.|[,]|\-|[!]|\(|\[|\{/,"_",$1)}1' OFS==) >> /env
  25. done
  26. . /env || true
  27. }
  28. --