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