1 |
You may try Linux From Scratch and try to write the init script |
2 |
yourself, it's good for self-education |
3 |
|
4 |
Once you master the LFS you can learn more things interesting and |
5 |
amazing in gentoo |
6 |
|
7 |
On 9/27/10, Mark Knecht <markknecht@×××××.com> wrote: |
8 |
> Hi, |
9 |
> I'm curious if there's a way to capture the exact set of command |
10 |
> that my machine executes as it boots up. I.e. - if I boot the machine, |
11 |
> letting the boot loader find the kernel but then stopping at a bash |
12 |
> prompt, before anything much has been done, I'd then like to know what |
13 |
> set of commands I could use from that bash prompt to make the machine |
14 |
> do whatever it does normally as it boots up. |
15 |
> |
16 |
> Is that possible, and is it documented anywhere? Or instead of |
17 |
> capturing commands maybe just a list of things that happen and the |
18 |
> bash commands I'd use to execute them myself. |
19 |
> |
20 |
> I think the init scripts, at least the ones I've found under |
21 |
> runlevels, are more generic than I would like to run. I'm looking for |
22 |
> something more like the portion of the install guide where we chroot |
23 |
> into the new build, except executing that from the command line of a |
24 |
> new machine that's booted. I.e.: |
25 |
> |
26 |
> mount /dev/hda4 /mnt/gentoo |
27 |
> mount -t proc none /mnt/gentoo/proc |
28 |
> mount -o bind /dev /mnt/gentoo/dev |
29 |
> |
30 |
> except modified to start from nothing and bring the machine up from |
31 |
> scratch. Mount /proc, mount /dev, start udev, check root filesystem, |
32 |
> etc. |
33 |
> |
34 |
> This is totally for self-education and nothing else really. Just |
35 |
> curious about how it happens, what order things happen, etc. If anyone |
36 |
> can recommend a good _basic_ book that talks about this I'd appreciate |
37 |
> it. |
38 |
> |
39 |
> Thanks, |
40 |
> Mark |
41 |
> |
42 |
> |
43 |
|
44 |
|
45 |
-- |
46 |
@ghosTM55 |
47 |
Mechanism, not policy |