Tiny Core Base > Raspberry Pi
Concatenate initramfs on Windows
sodface:
There's another best practice that goes "never say never"!
The only archive I created on Windows was the extra initramfs archive which only contained extensions. The mydata.gz was created previously on piCore.
In this case it seems to work ok. Here's how the additions look from piCore after boot:
--- Code: ---/tmp/builtin/:
total 4
drwxrwxrwx 3 root root 80 Jan 1 1970 ./
drwxrwxrwt 5 root root 180 Jan 1 1970 ../
-rw-rw-rw- 1 root root 189 Oct 9 16:20 onboot.lst
drwxrwxrwx 3 root root 980 Jan 1 1970 optional/
/tmp/builtin/optional:
total 11768
drwxrwxrwx 3 root root 980 Jan 1 1970 ./
drwxrwxrwx 3 root root 80 Jan 1 1970 ../
-rw-rw-rw- 1 root root 32.0K Dec 28 2016 bzip2-lib.tcz
-rw-rw-rw- 1 root root 48 Dec 28 2016 bzip2-lib.tcz.md5.txt
-rw-rw-rw- 1 root root 616.0K Dec 28 2016 ca-certificates.tcz
-rw-rw-rw- 1 root root 54 Dec 28 2016 ca-certificates.tcz.md5.txt
-rw-rw-rw- 1 root root 248.0K Oct 9 16:20 firmware-rpi3-wireless.tcz
-rw-rw-rw- 1 root root 16.0K Dec 28 2016 gamin.tcz
-rw-rw-rw- 1 root root 44 Dec 28 2016 gamin.tcz.md5.txt
-rw-rw-rw- 1 root root 944.0K Jan 12 2017 gcc_libs.tcz
-rw-rw-rw- 1 root root 47 Jan 12 2017 gcc_libs.tcz.md5.txt
-rw-rw-rw- 1 root root 1.2M Mar 10 2017 glib2.tcz
-rw-rw-rw- 1 root root 30 Apr 2 2017 glib2.tcz.dep
-rw-rw-rw- 1 root root 44 Apr 2 2017 glib2.tcz.md5.txt
-rw-rw-rw- 1 root root 76.0K Dec 28 2016 libedit.tcz
-rw-rw-rw- 1 root root 12 Dec 28 2016 libedit.tcz.dep
-rw-rw-rw- 1 root root 46 Dec 28 2016 libedit.tcz.md5.txt
-rw-rw-rw- 1 root root 32.0K Dec 28 2016 libelf.tcz
-rw-rw-rw- 1 root root 45 Dec 28 2016 libelf.tcz.md5.txt
-rw-rw-rw- 1 root root 384.0K Dec 28 2016 libgcrypt.tcz
-rw-rw-rw- 1 root root 17 Dec 28 2016 libgcrypt.tcz.dep
-rw-rw-rw- 1 root root 48 Dec 28 2016 libgcrypt.tcz.md5.txt
-rw-rw-rw- 1 root root 36.0K Dec 28 2016 libgpg-error.tcz
-rw-rw-rw- 1 root root 51 Dec 28 2016 libgpg-error.tcz.md5.txt
-rw-rw-rw- 1 root root 16.0K Oct 9 16:25 libiw.tcz
-rw-rw-rw- 1 root root 240.0K Oct 9 16:22 libnl.tcz
-rw-rw-rw- 1 root root 68.0K Dec 28 2016 libssh2.tcz
-rw-rw-rw- 1 root root 14 Dec 28 2016 libssh2.tcz.dep
-rw-rw-rw- 1 root root 46 Dec 28 2016 libssh2.tcz.md5.txt
-rw-rw-rw- 1 root root 1.0M Mar 7 2017 mc.tcz
-rw-rw-rw- 1 root root 34 Apr 2 2017 mc.tcz.dep
-rw-rw-rw- 1 root root 41 Apr 2 2017 mc.tcz.md5.txt
-rw-rw-rw- 1 root root 188.0K Dec 28 2016 ncurses.tcz
-rw-rw-rw- 1 root root 46 Dec 28 2016 ncurses.tcz.md5.txt
-rw-rw-rw- 1 root root 1.8M Dec 28 2016 openssh.tcz
-rw-rw-rw- 1 root root 24 Dec 28 2016 openssh.tcz.dep
-rw-rw-rw- 1 root root 46 Dec 28 2016 openssh.tcz.md5.txt
-rw-rw-rw- 1 root root 1.1M Dec 28 2016 openssl.tcz
-rw-rw-rw- 1 root root 20 Dec 28 2016 openssl.tcz.dep
-rw-rw-rw- 1 root root 46 Dec 28 2016 openssl.tcz.md5.txt
-rw-rw-rw- 1 root root 380.0K Dec 28 2016 pcre.tcz
-rw-rw-rw- 1 root root 27 Dec 28 2016 pcre.tcz.dep
-rw-rw-rw- 1 root root 43 Dec 28 2016 pcre.tcz.md5.txt
-rw-rw-rw- 1 root root 116.0K Oct 9 16:21 readline.tcz
drwxrwxrwx 2 root root 40 Dec 28 2016 upgrade/
-rw-rw-rw- 1 root root 8.0K Oct 9 16:26 wifi.tcz
-rw-rw-rw- 1 root root 2.5M Oct 9 16:25 wireless-4.9.22-piCore.tcz
-rw-rw-rw- 1 root root 40.0K Oct 9 16:26 wireless_tools.tcz
-rw-rw-rw- 1 root root 364.0K Oct 9 16:24 wpa_supplicant.tcz
/tmp/builtin/optional/upgrade:
total 0
drwxrwxrwx 2 root root 40 Dec 28 2016 ./
drwxrwxrwx 3 root root 980 Jan 1 1970 ../
--- End code ---
DrRob:
I am wondering if it might be possible to create a tool that takes all the packages that have been added into piCore and generate a custom initramfs with everything already in it so that extensions don't need to be loaded separately at boot time, and if so would that speed up the boot process? What do you think?
curaga:
Sure, I think there's a script for that posted here somewhere.
polikuo:
--- Quote from: DrRob on October 13, 2017, 11:58:39 PM ---I am wondering if it might be possible to create a tool that takes all the packages that have been added into piCore and generate a custom initramfs with everything already in it so that extensions don't need to be loaded separately at boot time, and if so would that speed up the boot process? What do you think?
--- End quote ---
Try this script.
It merges all extensions you want into a single tcz, that should reduce your boot time without touching initramfs.
DrRob:
--- Quote from: polikuo on October 14, 2017, 05:00:04 AM ---Try this script.
It merges all extensions you want into a single tcz, that should reduce your boot time without touching initramfs.
--- End quote ---
Thanks, I'll take a look at that.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version