Linux MintThis forum is for the discussion of Linux Mint.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Interesting study! Gets into the concept of initrd/initramfs (as that #2 locate will show)
(Here's something I found, tho obscure & NOT very related; &a LQthread: ^f run_scripts /scripts/init-bottom And a couple wiki's about how this fs 'goes away' via switch/pivot_root, tho initrd is optional, as in LFS! Also, mll is on my 'to-do' list )
Further to the previous answers, /etc/initramfs-tools/scripts/init-bottom and local-bottom are directories in which scripts can be stored to be executed during the initramfs stage of system startup.
There is some information on these directories in man initramfs-tools
On my system, Linux Mint 18.1, both directories are empty.
All there are empty directories. There are no files of that name:
Code:
xxx@Hound:~$ sudo find / -type f -name init-bottom
xxx@Hound:~$ sudo find / -type f -name local-bottom
show nothing.
So, I'm still in the dark as to what's in those files. Which brings me to a larger point. Where is there a detailed description of the boot process for Mint (Desktop: Cinnamon 2.8.8 Distro: Linux Mint 17.3 Rosa)? My Slackware experience isn't helping.
Thanks for that 'man' reference hydrurga. I'm afraid it's above my pay grade however. And it sounds like there are actually scripts in those empty dirs. Guess I'll remain in the dark. (Sigh).
For starters, you may want to list the contents of your initramfs:
Code:
lsinitramfs -l INITRAMFSFILE
(where INITRAMFSFILE, obviously, identifies the initramfs file—which most likely sits in your /boot directory). See if it lists any (executable) files in the scripts directory tree.
hydrurga: Your interpretation of those boot time script messages makes perfect sense to me. However, the hang time for those messages seems to suggest that something is happening. The reference to the Debian wiki on booting looks very interesting. Thanks for your interest and your help.
luvr: Alas, I don't seem to have a relevant initram* file anywhere in /. I do have a file initrd.img-3.19.0-32-generic, but lsinitramfs can't read it. BTW, I never knew about the lsinitramfs command. Thanks.
luvr: Alas, I don't seem to have a relevant initram* file anywhere in /. I do have a file initrd.img-3.19.0-32-generic, but lsinitramfs can't read it.
That’s strange... On my Ubuntu system, I have a /boot/initrd.img-4.4.0-67-generic file, which lsinitramfs reads fine. Perhaps on your Mint system, it’s in a somehow different format? The file command on my system tells me it’s a gzip compressed file:
Code:
$ file /boot/initrd.img-4.4.0-67-generic
/boot/initrd.img-4.4.0-67-generic: gzip compressed data, last modified: Wed Mar 15 19:17:28 2017, from Unix
I can copy it to a file with a .gz extension, and un-“gzip” it:
hydrurga: Your interpretation of those boot time script messages makes perfect sense to me. However, the hang time for those messages seems to suggest that something is happening. The reference to the Debian wiki on booting looks very interesting. Thanks for your interest and your help.
luvr: Alas, I don't seem to have a relevant initram* file anywhere in /. I do have a file initrd.img-3.19.0-32-generic, but lsinitramfs can't read it. BTW, I never knew about the lsinitramfs command. Thanks.
luvr's posts have been very interesting indeed.
What error message does lsinitramfs give?
On Mint 18.1, I have /boot/initrd.img-4.8.0-46-generic and lsinitramfs /boot/initrd.img-4.8.0-46-generic works fine.
said it was a gzip file. Like you, I appended a ',gz' to the name and ungzip'ed it. Voila, lsinitramfs read it; no cpio required. The /scripts/*-bottom were dirs, containing a few sophisticated scripts that told me nothing and were of no interest.
Probably a silly question, but were you in the right directory when you issued that command (i.e., most likely, "/boot")? Or, alternatively, did you enter the complete path to the file?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.