Timeline for How does Grub Stage1, exactly, access/load stage 2?
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 15, 2019 at 8:01 | comment | added | telcoM | See the man pages of the switch_root tool and its source code - it encapsulates all the critical actions of the switch in a single tool, and the initramfs is constructed to minimize the number of userspace processes active at the time of the switch. After switching, the tool deletes the initramfs contents, and as soon as there are no processes holding onto them, the kernel initramfs driver cleans them up, until nothing is left of the initramfs. | |
| Nov 15, 2019 at 6:45 | comment | added | Zul K Irshad | Thanks for taking the time to provide a detailed answer. Will you be kind enough to also share some knowledge around exec switch_root step as well? What bothers me is that when /init is running from ramdisk or initramfs udev/dev and proc filesystems are mounted at /dev & /proc respectively. How do udev/dev and proc get remounted/remapped to dev and proc directories on real / filesystem? Should switch_root system call not complain that / is busy? | |
| Nov 11, 2019 at 13:53 | history | edited | telcoM | CC BY-SA 4.0 |
added 658 characters in body
|
| Nov 11, 2019 at 10:21 | history | edited | telcoM | CC BY-SA 4.0 |
deleted 2 characters in body
|
| Nov 11, 2019 at 10:15 | history | answered | telcoM | CC BY-SA 4.0 |