summaryrefslogtreecommitdiff
path: root/docs/busybox.busybox.narkive.com_PBeyeZOM_custom-initrd-using.txt
blob: b9085a5d5805f4b1394e3031c545f7ae1478bf58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
   [1]busybox@busybox.net
   Discussion:
   Custom initrd using busybox
   Moot Account
   2006-11-05 16:30:01 UTC
   [2]Permalink
   Hi,
   This is a bloated idea but it's just an exercise. The idea is to use
   the rootfs from buildroot as the initrd (i.e. initrd=/boot/rootfs.gz).
   This initrd should mount the _real_ rootfs using pivot_root. The real
   rootfs is in the second partition (/dev/hda2) and is the _same_ rootfs
   built from buildroot. In other words, rootfs.gz = rootfs in /dev/hda2.
   Inside the initrd (ie rootfs.gz) is /linuxrc which will be read first
   by the kernel after mounting the initrd. Instead of pointing it to
   /bin/busybox, I'm going to create a custom linuxrc.
   My _problem_ starts here. I CAN'T chroot to the rootfs in /dev/hda2
   and execute the /linuxrc, which is still pointed /bin/busybox. I need
   to chroot because /linuxrc will initialize my rootfs and put up the
   login (ie /etc/inittab getty).
   Here are my arguments to the kernel:
   linux /boot/bzImage console=ttyS0,9600
   (since it's a serial console)
   This is the custom linuxrc that does _not_ work:
   #!/bin/sh
   echo "linuxrc execute"
   mount -t proc /proc /proc
   mkdir new_root
   mount -t ext2 /dev/hda2 /new_root
   umount proc
   cd /new_root
   pivot_root . initrd
   mount -t proc proc proc
   mount -t devfs devfs dev
   exec /usr/sbin/chroot . 'exec /linuxrc' \
   <dev/console >dev/console 2>&1
   I'm stuck after the execution pivot_root. It seems that dev/console is
   busy.
   Thanks for any help.
   Luciano Miguel Ferreira Rocha
   2006-11-05 16:52:52 UTC
   [3]Permalink
   [4]Post by Moot Account
   Hi,
   This is a bloated idea but it's just an exercise. The idea is to use
   the rootfs from buildroot as the initrd (i.e. initrd=/boot/rootfs.gz).
   This initrd should mount the _real_ rootfs using pivot_root. The real
   rootfs is in the second partition (/dev/hda2) and is the _same_ rootfs
   built from buildroot. In other words, rootfs.gz = rootfs in /dev/hda2.
   Inside the initrd (ie rootfs.gz) is /linuxrc which will be read first
   by the kernel after mounting the initrd. Instead of pointing it to
   /bin/busybox, I'm going to create a custom linuxrc.
   My _problem_ starts here. I CAN'T chroot to the rootfs in /dev/hda2
   and execute the /linuxrc, which is still pointed /bin/busybox. I need
   to chroot because /linuxrc will initialize my rootfs and put up the
   login (ie /etc/inittab getty).
   linux /boot/bzImage console=ttyS0,9600
   (since it's a serial console)
   #!/bin/sh
   echo "linuxrc execute"
   mount -t proc /proc /proc
   mkdir new_root
   mount -t ext2 /dev/hda2 /new_root
   umount proc
   cd /new_root
   pivot_root . initrd
   mount -t proc proc proc
   mount -t devfs devfs dev
   exec /usr/sbin/chroot . 'exec /linuxrc' \
   <dev/console >dev/console 2>&1
   I'm stuck after the execution pivot_root. It seems that dev/console is
   busy.
   And this stops linuxrc from continuing?
   Try:
   ...
   cd /new_root
   exec < dev/console &> dev/console
   pivot_root . initrd
   ...
   --
   lfr
   0/0
   -------------- next part --------------
   A non-text attachment was scrubbed...
   Name: not available
   Type: application/pgp-signature
   Size: 189 bytes
   Desc: not available
   Url :
   http://busybox.net/lists/busybox/attachments/20061105/78ae3c9d/attachme
   nt.pgp
   Moot Account
   2006-11-05 17:09:43 UTC
   [5]Permalink
   Thanks! I'll try this when I get to the board (Soekris net4801)
   tomorrow.
   But I have another question. How is /sbin/init ( ->busybox ) accessed.
   When I use:
   exec /usr/sbin/chroot . /sbin/init <dev/console >dev/console 2>&1
   the usage of init is printed. This probably means that init is not run
   as PID 1. Also, when I use /linuxrc it seems to be stuck.
   Any ideas?
   Thanks again.
   -Lenmarc
   [6]Post by Luciano Miguel Ferreira Rocha
   [7]Post by Moot Account
   Hi,
   This is a bloated idea but it's just an exercise. The idea is to use
   the rootfs from buildroot as the initrd (i.e. initrd=/boot/rootfs.gz).
   This initrd should mount the _real_ rootfs using pivot_root. The real
   rootfs is in the second partition (/dev/hda2) and is the _same_ rootfs
   built from buildroot. In other words, rootfs.gz = rootfs in /dev/hda2.
   Inside the initrd (ie rootfs.gz) is /linuxrc which will be read first
   by the kernel after mounting the initrd. Instead of pointing it to
   /bin/busybox, I'm going to create a custom linuxrc.
   My _problem_ starts here. I CAN'T chroot to the rootfs in /dev/hda2
   and execute the /linuxrc, which is still pointed /bin/busybox. I need
   to chroot because /linuxrc will initialize my rootfs and put up the
   login (ie /etc/inittab getty).
   linux /boot/bzImage console=ttyS0,9600
   (since it's a serial console)
   #!/bin/sh
   echo "linuxrc execute"
   mount -t proc /proc /proc
   mkdir new_root
   mount -t ext2 /dev/hda2 /new_root
   umount proc
   cd /new_root
   pivot_root . initrd
   mount -t proc proc proc
   mount -t devfs devfs dev
   exec /usr/sbin/chroot . 'exec /linuxrc' \
   <dev/console >dev/console 2>&1
   I'm stuck after the execution pivot_root. It seems that dev/console is
   busy.
   And this stops linuxrc from continuing?
   ...
   cd /new_root
   exec < dev/console &> dev/console
   pivot_root . initrd
   ...
   Luciano Miguel Ferreira Rocha
   2006-11-05 17:20:31 UTC
   [8]Permalink
   [9]Post by Moot Account
   Thanks! I'll try this when I get to the board (Soekris net4801)
   tomorrow.
   But I have another question. How is /sbin/init ( ->busybox ) accessed.
   exec /usr/sbin/chroot . /sbin/init <dev/console >dev/console 2>&1
   the usage of init is printed. This probably means that init is not run
   as PID 1. Also, when I use /linuxrc it seems to be stuck.
   Any ideas?
   Ah, yes. You can't do that using linuxrc. Linuxrc isn't run as init
   (pid
   isn't 1). You're supposed to set the real root device writing to a
   /proc
   file (/proc/sys/kernel/real-root-dev), exit, and the kernel then mounts
   the real root device and executes init.
   You can change that behaviour by booting your kernel with
   "init=/linuxrc
   root=/dev/ram0", and then the kernel runs linuxrc as init (IIRC).
   Other option you could check out would be using initramfs instead of
   old
   initrd:
   1. name your script /init instead of /linuxrc;
   2. call exec switch_root instead of pivot_root (and switch_root isn't
   supposed to return, it calls init by itself);
   3. create the new "initrd" as a new-format cpio file:
   find . -print0 | cpio -0oHnewc | gzip -9 > ../initrd.img
   More information about initramfs and initrd can be found in a kernel
   source tree:
   - Documentation/initrd.txt
   - Documentation/filesystems/ramfs-rootfs-initramfs.txt
   - Documentation/early-userspace/README
   --
   lfr
   0/0
   -------------- next part --------------
   A non-text attachment was scrubbed...
   Name: not available
   Type: application/pgp-signature
   Size: 189 bytes
   Desc: not available
   Url :
   http://busybox.net/lists/busybox/attachments/20061105/32f2f1f3/attachme
   nt-0001.pgp
   Bernhard Fischer
   2006-11-05 18:07:30 UTC
   [10]Permalink
   [11]Post by Luciano Miguel Ferreira Rocha
   You can change that behaviour by booting your kernel with
   "init=/linuxrc
   root=/dev/ram0", and then the kernel runs linuxrc as init (IIRC).
   resp. root=0100 which wastes less memory ;)
   btw, is there a way to flush all or some of these convenience vars out
   of
   the kernel-mem perhaps if CONFIG_EMBEDDED=y ? Didn't look yet, i
   admit..
   Jason Schoon
   2006-11-05 18:49:19 UTC
   [12]Permalink
   [13]Post by Luciano Miguel Ferreira Rocha
   You can change that behaviour by booting your kernel with
   "init=/linuxrc
   root=/dev/ram0", and then the kernel runs linuxrc as init (IIRC).
   resp. root00 which wastes less memory ;)
   btw, is there a way to flush all or some of these convenience vars out
   of
   the kernel-mem perhaps if CONFIG_EMBEDDED=y ? Didn't look yet, i
   admit..
   By convenience vars, do you mean such as /dev/ram0? If so, turning of
   sysfs
   support will get rid of them. In many embedded scenarios sysfs doesn't
   buy
   you much anyway. If you are hotplugging or something similar though,
   the
   space savings are not likely to be worth not having sysfs.
   -------------- next part --------------
   An HTML attachment was scrubbed...
   URL:
   http://busybox.net/lists/busybox/attachments/20061105/8a59f7e3/attachme
   nt.html
   Jason Schoon
   2006-11-05 18:55:15 UTC
   [14]Permalink
   [15]Post by Jason Schoon
   [16]Post by Luciano Miguel Ferreira Rocha
   [17]Post by Luciano Miguel Ferreira Rocha
   You can change that behaviour by booting your kernel with
   "init=/linuxrc
   [18]Post by Luciano Miguel Ferreira Rocha
   root=/dev/ram0", and then the kernel runs linuxrc as init (IIRC).
   resp. root00 which wastes less memory ;)
   btw, is there a way to flush all or some of these convenience vars out
   of
   the kernel-mem perhaps if CONFIG_EMBEDDED=y ? Didn't look yet, i
   admit..
   By convenience vars, do you mean such as /dev/ram0? If so, turning of
   sysfs support will get rid of them. In many embedded scenarios sysfs
   doesn't buy you much anyway. If you are hotplugging or something
   similar
   though, the space savings are not likely to be worth not having sysfs.
   Nevermind, I figured out what you were really asking. I have never seen
   a
   scenario (CONFIG_EMBEDDED or otherwise) where the full parameters were
   not
   available via /proc/cmdline. I'm guessing that means there isn't
   currently
   a way to get them out of memory.
   If anything, the linux-tiny guys might have a config option to do that.
   -------------- next part --------------
   An HTML attachment was scrubbed...
   URL:
   http://busybox.net/lists/busybox/attachments/20061105/68741ca9/attachme
   nt.htm
   Bernhard Fischer
   2006-11-05 19:11:15 UTC
   [19]Permalink
   [20]Post by Jason Schoon
   [21]Post by Bernhard Fischer
   resp. root=0100 which wastes less memory ;)
   btw, is there a way to flush all or some of these convenience vars out
   of
   the kernel-mem perhaps if CONFIG_EMBEDDED=y ? Didn't look yet, i
   admit..
   I have never seen a
   scenario (CONFIG_EMBEDDED or otherwise) where the full parameters were
   not
   available via /proc/cmdline. I'm guessing that means there isn't
   currently
   a way to get them out of memory.
   If anything, the linux-tiny guys might have a config option to do that.
   Yeah, thought so too. Sounds like __user_init along with something like
   sysctl (or better, putting it into a /del_usermem fops.flush or the
   like). hm..
   Bernhard Fischer
   2006-11-05 19:11:15 UTC
   [22]Permalink
   [23]Post by Jason Schoon
   [24]Post by Bernhard Fischer
   resp. root=0100 which wastes less memory ;)
   btw, is there a way to flush all or some of these convenience vars out
   of
   the kernel-mem perhaps if CONFIG_EMBEDDED=y ? Didn't look yet, i
   admit..
   I have never seen a
   scenario (CONFIG_EMBEDDED or otherwise) where the full parameters were
   not
   available via /proc/cmdline. I'm guessing that means there isn't
   currently
   a way to get them out of memory.
   If anything, the linux-tiny guys might have a config option to do that.
   Yeah, thought so too. Sounds like __user_init along with something like
   sysctl (or better, putting it into a /del_usermem fops.flush or the
   like). hm..
   Jason Schoon
   2006-11-05 18:55:15 UTC
   [25]Permalink
   [26]Post by Jason Schoon
   [27]Post by Luciano Miguel Ferreira Rocha
   [28]Post by Luciano Miguel Ferreira Rocha
   You can change that behaviour by booting your kernel with
   "init=/linuxrc
   [29]Post by Luciano Miguel Ferreira Rocha
   root=/dev/ram0", and then the kernel runs linuxrc as init (IIRC).
   resp. root=0100 which wastes less memory ;)
   btw, is there a way to flush all or some of these convenience vars out
   of
   the kernel-mem perhaps if CONFIG_EMBEDDED=y ? Didn't look yet, i
   admit..
   By convenience vars, do you mean such as /dev/ram0? If so, turning of
   sysfs support will get rid of them. In many embedded scenarios sysfs
   doesn't buy you much anyway. If you are hotplugging or something
   similar
   though, the space savings are not likely to be worth not having sysfs.
   Nevermind, I figured out what you were really asking. I have never seen
   a
   scenario (CONFIG_EMBEDDED or otherwise) where the full parameters were
   not
   available via /proc/cmdline. I'm guessing that means there isn't
   currently
   a way to get them out of memory.
   If anything, the linux-tiny guys might have a config option to do that.
   -------------- next part --------------
   An HTML attachment was scrubbed...
   URL:
   http://lists.busybox.net/pipermail/busybox/attachments/20061105/68741ca
   9/attachment-0001.htm
   Jason Schoon
   2006-11-05 18:49:19 UTC
   [30]Permalink
   [31]Post by Bernhard Fischer
   [32]Post by Luciano Miguel Ferreira Rocha
   You can change that behaviour by booting your kernel with
   "init=/linuxrc
   root=/dev/ram0", and then the kernel runs linuxrc as init (IIRC).
   resp. root=0100 which wastes less memory ;)
   btw, is there a way to flush all or some of these convenience vars out
   of
   the kernel-mem perhaps if CONFIG_EMBEDDED=y ? Didn't look yet, i
   admit..
   By convenience vars, do you mean such as /dev/ram0? If so, turning of
   sysfs
   support will get rid of them. In many embedded scenarios sysfs doesn't
   buy
   you much anyway. If you are hotplugging or something similar though,
   the
   space savings are not likely to be worth not having sysfs.
   -------------- next part --------------
   An HTML attachment was scrubbed...
   URL:
   http://lists.busybox.net/pipermail/busybox/attachments/20061105/8a59f7e
   3/attachment.htm
   Rob Landley
   2006-11-05 20:19:40 UTC
   [33]Permalink
   [34]Post by Luciano Miguel Ferreira Rocha
   Ah, yes. You can't do that using linuxrc. Linuxrc isn't run as init
   (pid
   isn't 1). You're supposed to set the real root device writing to a
   /proc
   file (/proc/sys/kernel/real-root-dev), exit, and the kernel then mounts
   the real root device and executes init.
   Using initramfs and switch_root is way more straightforward than this.
   And
   doesn't have the magic behind the scenes stuff (like reparenting every
   running process whose ".", "..", or "/" points to the old root, yes
   including
   kernel threads).
   Just sayin'...
   Rob
   [35]Post by Luciano Miguel Ferreira Rocha
   Other option you could check out would be using initramfs instead of
   old
   1. name your script /init instead of /linuxrc;
   Or supply the kernel the "rdinit=/blah" argument to tell it what you
   called
   it.
   [36]Post by Luciano Miguel Ferreira Rocha
   2. call exec switch_root instead of pivot_root (and switch_root isn't
   supposed to return, it calls init by itself);
   Don't forget the "exec". Common mistake. If it's not PID 1, it'll
   abort.
   [37]Post by Luciano Miguel Ferreira Rocha
   find . -print0 | cpio -0oHnewc | gzip -9 > ../initrd.img
   The kernel can do this for you, if you prefer. And even build it into
   the
   bzImage.
   [38]Post by Luciano Miguel Ferreira Rocha
   - Documentation/filesystems/ramfs-rootfs-initramfs.txt
   I wrote that one. If it's missing something, let me know.
   I also wrote a couple articles for TimeSys, earlier this year. It's a
   little
   long-winded, but might help:
   http://www.timesys.com/timesource/march_06.htm
   http://timesys.com/timesource/initramfs.htm
   Rob
   --
   "Perfection is reached, not when there is no longer anything to add,
   but
   when there is no longer anything to take away." - Antoine de
   Saint-Exupery
   Luciano Miguel Ferreira Rocha
   2006-11-05 23:34:31 UTC
   [39]Permalink
   [40]Post by Rob Landley
   [41]Post by Luciano Miguel Ferreira Rocha
   - Documentation/filesystems/ramfs-rootfs-initramfs.txt
   I wrote that one. If it's missing something, let me know.
   Information about the rdinit parameter would be nice. :)
   It is in kernel-parameters.txt but I never searched for such an option.
   Also, it reads "The program run by the old initrd (which was called
   /initrd, not /init)". Did you mean /linuxrc? I don't recall seeing
   /initrd anywhere else.
   And finally, could you add some bigger warnings about rootfs being
   ramfs, a non-swappable device? The file does say that initramfs is
   extracted to rootfs, an instance of ramfs. But I didn't read the file
   that carefully the first time...
   I made a /init that extracts cpios (gziped and bziped) in / to a tmpfs,
   moves all remaining files to the tmpfs, and executes the new init, if
   anyone is interested.
   Regards,
   Luciano Rocha
   --
   lfr
   0/0
   -------------- next part --------------
   A non-text attachment was scrubbed...
   Name: not available
   Type: application/pgp-signature
   Size: 189 bytes
   Desc: not available
   Url :
   http://busybox.net/lists/busybox/attachments/20061105/6bd4039f/attachme
   nt.pgp
   Rob Landley
   2006-11-05 23:43:52 UTC
   [42]Permalink
   [43]Post by Luciano Miguel Ferreira Rocha
   [44]Post by Rob Landley
   [45]Post by Luciano Miguel Ferreira Rocha
   - Documentation/filesystems/ramfs-rootfs-initramfs.txt
   I wrote that one. If it's missing something, let me know.
   Information about the rdinit parameter would be nice. :)
   I think the current version (2.6.18 and up) mentions it?
   [46]Post by Luciano Miguel Ferreira Rocha
   It is in kernel-parameters.txt but I never searched for such an option.
   Also, it reads "The program run by the old initrd (which was called
   /initrd, not /init)". Did you mean /linuxrc? I don't recall seeing
   /initrd anywhere else.
   Yeah, that's linuxrc.
   [47]Post by Luciano Miguel Ferreira Rocha
   And finally, could you add some bigger warnings about rootfs being
   ramfs, a non-swappable device?
   There are patches floating around to make it tmpfs if you have tmpfs
   built
   into the kernel. I keep thinking they've been integrated. (This is the
   point of tmpfs.)
   [48]Post by Luciano Miguel Ferreira Rocha
   The file does say that initramfs is
   extracted to rootfs, an instance of ramfs. But I didn't read the file
   that carefully the first time...
   It should be possible for this to be tmpfs. When did this last crop
   up...
   http://lkml.org/lkml/2006/7/30/120
   Dunno if it got integrated or not, but there's a start...
   [49]Post by Luciano Miguel Ferreira Rocha
   I made a /init that extracts cpios (gziped and bziped) in / to a tmpfs,
   moves all remaining files to the tmpfs, and executes the new init, if
   anyone is interested.
   The proper thing to do is patch the kernel so initramfs is a tmpfs.
   Rob
   --
   "Perfection is reached, not when there is no longer anything to add,
   but
   when there is no longer anything to take away." - Antoine de
   Saint-Exupery
   Luciano Miguel Ferreira Rocha
   2006-11-06 00:20:07 UTC
   [50]Permalink
   This post might be inappropriate. Click to display it.
   Moot Account
   2006-11-06 20:07:15 UTC
   [51]Permalink
   Hi all,
   Thanks all for the help, it's working now! Apparently, Ive been doing
   the right initrd and initramfs for the past few days. The problem is
   with my real rootfs (the one in /dev/hda2).
   Please pardon a newbie. My question is: what's the _difference_
   between the "buildroot/build_i686/root" folder and rootfs.i686.ext2.gz
   if I enable the gzipped output? I know this is related to buildroot
   but please answer if it's trivial. =)
   The working setup NOW is rootfs.i686.ext2.gz which is my initrd and
   also my real rootfs. The NON-working setup is rootfs.i686.ext2.gz as
   my initrd and "buildroot/build_i686/root" folder as my real rootfs,
   which I copied to /dev/hda2.
   Again, thanks all for the tips!
   -Lenmarc
   Rob Landley
   2006-11-07 21:48:09 UTC
   [52]Permalink
   [53]Post by Moot Account
   Please pardon a newbie. My question is: what's the _difference_
   between the "buildroot/build_i686/root" folder and rootfs.i686.ext2.gz
   The difference is that this is the BusyBox mailing list, and the
   buildroot
   mailing list is buildroot at uclibc.org. Your question is about
   buildroot, not
   busybox.
   Rob
   --
   "Perfection is reached, not when there is no longer anything to add,
   but
   when there is no longer anything to take away." - Antoine de
   Saint-Exupery
   Rob Landley
   2006-11-07 21:48:09 UTC
   [54]Permalink
   [55]Post by Moot Account
   Please pardon a newbie. My question is: what's the _difference_
   between the "buildroot/build_i686/root" folder and rootfs.i686.ext2.gz
   The difference is that this is the BusyBox mailing list, and the
   buildroot
   mailing list is buildroot at uclibc.org. Your question is about
   buildroot, not
   busybox.
   Rob
   --
   "Perfection is reached, not when there is no longer anything to add,
   but
   when there is no longer anything to take away." - Antoine de
   Saint-Exupery
   Moot Account
   2006-11-06 20:07:15 UTC
   [56]Permalink
   Hi all,
   Thanks all for the help, it's working now! Apparently, Ive been doing
   the right initrd and initramfs for the past few days. The problem is
   with my real rootfs (the one in /dev/hda2).
   Please pardon a newbie. My question is: what's the _difference_
   between the "buildroot/build_i686/root" folder and rootfs.i686.ext2.gz
   if I enable the gzipped output? I know this is related to buildroot
   but please answer if it's trivial. =)
   The working setup NOW is rootfs.i686.ext2.gz which is my initrd and
   also my real rootfs. The NON-working setup is rootfs.i686.ext2.gz as
   my initrd and "buildroot/build_i686/root" folder as my real rootfs,
   which I copied to /dev/hda2.
   Again, thanks all for the tips!
   -Lenmarc
   Luciano Miguel Ferreira Rocha
   2006-11-06 00:20:07 UTC
   [57]Permalink
   This post might be inappropriate. Click to display it.
   Rob Landley
   2006-11-05 23:43:52 UTC
   [58]Permalink
   [59]Post by Luciano Miguel Ferreira Rocha
   [60]Post by Rob Landley
   [61]Post by Luciano Miguel Ferreira Rocha
   - Documentation/filesystems/ramfs-rootfs-initramfs.txt
   I wrote that one. If it's missing something, let me know.
   Information about the rdinit parameter would be nice. :)
   I think the current version (2.6.18 and up) mentions it?
   [62]Post by Luciano Miguel Ferreira Rocha
   It is in kernel-parameters.txt but I never searched for such an option.
   Also, it reads "The program run by the old initrd (which was called
   /initrd, not /init)". Did you mean /linuxrc? I don't recall seeing
   /initrd anywhere else.
   Yeah, that's linuxrc.
   [63]Post by Luciano Miguel Ferreira Rocha
   And finally, could you add some bigger warnings about rootfs being
   ramfs, a non-swappable device?
   There are patches floating around to make it tmpfs if you have tmpfs
   built
   into the kernel. I keep thinking they've been integrated. (This is the
   point of tmpfs.)
   [64]Post by Luciano Miguel Ferreira Rocha
   The file does say that initramfs is
   extracted to rootfs, an instance of ramfs. But I didn't read the file
   that carefully the first time...
   It should be possible for this to be tmpfs. When did this last crop
   up...
   http://lkml.org/lkml/2006/7/30/120
   Dunno if it got integrated or not, but there's a start...
   [65]Post by Luciano Miguel Ferreira Rocha
   I made a /init that extracts cpios (gziped and bziped) in / to a tmpfs,
   moves all remaining files to the tmpfs, and executes the new init, if
   anyone is interested.
   The proper thing to do is patch the kernel so initramfs is a tmpfs.
   Rob
   --
   "Perfection is reached, not when there is no longer anything to add,
   but
   when there is no longer anything to take away." - Antoine de
   Saint-Exupery
   Luciano Miguel Ferreira Rocha
   2006-11-05 23:34:31 UTC
   [66]Permalink
   [67]Post by Rob Landley
   [68]Post by Luciano Miguel Ferreira Rocha
   - Documentation/filesystems/ramfs-rootfs-initramfs.txt
   I wrote that one. If it's missing something, let me know.
   Information about the rdinit parameter would be nice. :)
   It is in kernel-parameters.txt but I never searched for such an option.
   Also, it reads "The program run by the old initrd (which was called
   /initrd, not /init)". Did you mean /linuxrc? I don't recall seeing
   /initrd anywhere else.
   And finally, could you add some bigger warnings about rootfs being
   ramfs, a non-swappable device? The file does say that initramfs is
   extracted to rootfs, an instance of ramfs. But I didn't read the file
   that carefully the first time...
   I made a /init that extracts cpios (gziped and bziped) in / to a tmpfs,
   moves all remaining files to the tmpfs, and executes the new init, if
   anyone is interested.
   Regards,
   Luciano Rocha
   --
   lfr
   0/0
   -------------- next part --------------
   A non-text attachment was scrubbed...
   Name: not available
   Type: application/pgp-signature
   Size: 189 bytes
   Desc: not available
   Url :
   http://lists.busybox.net/pipermail/busybox/attachments/20061105/6bd4039
   f/attachment-0002.pgp
   Rob Landley
   2006-11-05 20:26:42 UTC
   [69]Permalink
   [70]Post by Luciano Miguel Ferreira Rocha
   find . -print0 | cpio -0oHnewc | gzip -9 > ../initrd.img
   Now _that_ is an ugly set of command line options (for cpio). Let's
   see, that
   should equate to:
   cpio -0 -o -H newc
   I'm interested in this because I'm about halfway through writing
   toybox's
   get_optflags(), which doesn't use getopt() so I have to parse all this
   myself. It's not actually that hard, but the tricky case is where some
   of
   your arguments have no dash, ala ps or tar. Then you can wind up with
   stuff
   like:
   tar xjfCv filename.tbz dirname blah
   Which is equivalent to:
   tar -x -j -f filename.tbz -C dirname -v blah
   And _not_ equivalent to:
   tar -x -j -f C -v filename.tbz blah
   Which is what you get with the getopt() in uClibc 0.9.28. (I realize
   this is
   a funky corner case, but it's one that bit me and I want to get it
   _right_
   this time.)
   It looks like the nodash mode and the dash mode of the option parser
   have
   different sequencing requirements. Ok, I can do that...
   Rob
   --
   "Perfection is reached, not when there is no longer anything to add,
   but
   when there is no longer anything to take away." - Antoine de
   Saint-Exupery
   Luciano Miguel Ferreira Rocha
   2006-11-05 23:02:12 UTC
   [71]Permalink
   [72]Post by Rob Landley
   [73]Post by Luciano Miguel Ferreira Rocha
   find . -print0 | cpio -0oHnewc | gzip -9 > ../initrd.img
   Now _that_ is an ugly set of command line options (for cpio).
   Thank you. :)
   I used to use -0oc. But after wasting a coule of hours trying to make a
   kernel
   recognize a cpio archive, I found that -c doesn't mean exactly the same
   thing everywhere. So now I use -Hnewc everywhere.
   --
   lfr
   0/0
   -------------- next part --------------
   A non-text attachment was scrubbed...
   Name: not available
   Type: application/pgp-signature
   Size: 189 bytes
   Desc: not available
   Url :
   http://busybox.net/lists/busybox/attachments/20061105/fb8660e1/attachme
   nt.pgp
   Luciano Miguel Ferreira Rocha
   2006-11-05 23:02:12 UTC
   [74]Permalink
   [75]Post by Rob Landley
   [76]Post by Luciano Miguel Ferreira Rocha
   find . -print0 | cpio -0oHnewc | gzip -9 > ../initrd.img
   Now _that_ is an ugly set of command line options (for cpio).
   Thank you. :)
   I used to use -0oc. But after wasting a coule of hours trying to make a
   kernel
   recognize a cpio archive, I found that -c doesn't mean exactly the same
   thing everywhere. So now I use -Hnewc everywhere.
   --
   lfr
   0/0
   -------------- next part --------------
   A non-text attachment was scrubbed...
   Name: not available
   Type: application/pgp-signature
   Size: 189 bytes
   Desc: not available
   Url :
   http://lists.busybox.net/pipermail/busybox/attachments/20061105/fb8660e
   1/attachment-0002.pgp
   Bernhard Fischer
   2006-11-05 18:07:30 UTC
   [77]Permalink
   [78]Post by Luciano Miguel Ferreira Rocha
   You can change that behaviour by booting your kernel with
   "init=/linuxrc
   root=/dev/ram0", and then the kernel runs linuxrc as init (IIRC).
   resp. root=0100 which wastes less memory ;)
   btw, is there a way to flush all or some of these convenience vars out
   of
   the kernel-mem perhaps if CONFIG_EMBEDDED=y ? Didn't look yet, i
   admit..
   Rob Landley
   2006-11-05 20:19:40 UTC
   [79]Permalink
   [80]Post by Luciano Miguel Ferreira Rocha
   Ah, yes. You can't do that using linuxrc. Linuxrc isn't run as init
   (pid
   isn't 1). You're supposed to set the real root device writing to a
   /proc
   file (/proc/sys/kernel/real-root-dev), exit, and the kernel then mounts
   the real root device and executes init.
   Using initramfs and switch_root is way more straightforward than this.
   And
   doesn't have the magic behind the scenes stuff (like reparenting every
   running process whose ".", "..", or "/" points to the old root, yes
   including
   kernel threads).
   Just sayin'...
   Rob
   [81]Post by Luciano Miguel Ferreira Rocha
   Other option you could check out would be using initramfs instead of
   old
   1. name your script /init instead of /linuxrc;
   Or supply the kernel the "rdinit=/blah" argument to tell it what you
   called
   it.
   [82]Post by Luciano Miguel Ferreira Rocha
   2. call exec switch_root instead of pivot_root (and switch_root isn't
   supposed to return, it calls init by itself);
   Don't forget the "exec". Common mistake. If it's not PID 1, it'll
   abort.
   [83]Post by Luciano Miguel Ferreira Rocha
   find . -print0 | cpio -0oHnewc | gzip -9 > ../initrd.img
   The kernel can do this for you, if you prefer. And even build it into
   the
   bzImage.
   [84]Post by Luciano Miguel Ferreira Rocha
   - Documentation/filesystems/ramfs-rootfs-initramfs.txt
   I wrote that one. If it's missing something, let me know.
   I also wrote a couple articles for TimeSys, earlier this year. It's a
   little
   long-winded, but might help:
   http://www.timesys.com/timesource/march_06.htm
   http://timesys.com/timesource/initramfs.htm
   Rob
   --
   "Perfection is reached, not when there is no longer anything to add,
   but
   when there is no longer anything to take away." - Antoine de
   Saint-Exupery
   Rob Landley
   2006-11-05 20:26:42 UTC
   [85]Permalink
   [86]Post by Luciano Miguel Ferreira Rocha
   find . -print0 | cpio -0oHnewc | gzip -9 > ../initrd.img
   Now _that_ is an ugly set of command line options (for cpio). Let's
   see, that
   should equate to:
   cpio -0 -o -H newc
   I'm interested in this because I'm about halfway through writing
   toybox's
   get_optflags(), which doesn't use getopt() so I have to parse all this
   myself. It's not actually that hard, but the tricky case is where some
   of
   your arguments have no dash, ala ps or tar. Then you can wind up with
   stuff
   like:
   tar xjfCv filename.tbz dirname blah
   Which is equivalent to:
   tar -x -j -f filename.tbz -C dirname -v blah
   And _not_ equivalent to:
   tar -x -j -f C -v filename.tbz blah
   Which is what you get with the getopt() in uClibc 0.9.28. (I realize
   this is
   a funky corner case, but it's one that bit me and I want to get it
   _right_
   this time.)
   It looks like the nodash mode and the dash mode of the option parser
   have
   different sequencing requirements. Ok, I can do that...
   Rob
   --
   "Perfection is reached, not when there is no longer anything to add,
   but
   when there is no longer anything to take away." - Antoine de
   Saint-Exupery
   Luciano Miguel Ferreira Rocha
   2006-11-05 17:20:31 UTC
   [87]Permalink
   [88]Post by Moot Account
   Thanks! I'll try this when I get to the board (Soekris net4801)
   tomorrow.
   But I have another question. How is /sbin/init ( ->busybox ) accessed.
   exec /usr/sbin/chroot . /sbin/init <dev/console >dev/console 2>&1
   the usage of init is printed. This probably means that init is not run
   as PID 1. Also, when I use /linuxrc it seems to be stuck.
   Any ideas?
   Ah, yes. You can't do that using linuxrc. Linuxrc isn't run as init
   (pid
   isn't 1). You're supposed to set the real root device writing to a
   /proc
   file (/proc/sys/kernel/real-root-dev), exit, and the kernel then mounts
   the real root device and executes init.
   You can change that behaviour by booting your kernel with
   "init=/linuxrc
   root=/dev/ram0", and then the kernel runs linuxrc as init (IIRC).
   Other option you could check out would be using initramfs instead of
   old
   initrd:
   1. name your script /init instead of /linuxrc;
   2. call exec switch_root instead of pivot_root (and switch_root isn't
   supposed to return, it calls init by itself);
   3. create the new "initrd" as a new-format cpio file:
   find . -print0 | cpio -0oHnewc | gzip -9 > ../initrd.img
   More information about initramfs and initrd can be found in a kernel
   source tree:
   - Documentation/initrd.txt
   - Documentation/filesystems/ramfs-rootfs-initramfs.txt
   - Documentation/early-userspace/README
   --
   lfr
   0/0
   -------------- next part --------------
   A non-text attachment was scrubbed...
   Name: not available
   Type: application/pgp-signature
   Size: 189 bytes
   Desc: not available
   Url :
   http://lists.busybox.net/pipermail/busybox/attachments/20061105/32f2f1f
   3/attachment-0002.pgp
   Moot Account
   2006-11-05 17:09:43 UTC
   [89]Permalink
   Thanks! I'll try this when I get to the board (Soekris net4801)
   tomorrow.
   But I have another question. How is /sbin/init ( ->busybox ) accessed.
   When I use:
   exec /usr/sbin/chroot . /sbin/init <dev/console >dev/console 2>&1
   the usage of init is printed. This probably means that init is not run
   as PID 1. Also, when I use /linuxrc it seems to be stuck.
   Any ideas?
   Thanks again.
   -Lenmarc
   [90]Post by Luciano Miguel Ferreira Rocha
   [91]Post by Moot Account
   Hi,
   This is a bloated idea but it's just an exercise. The idea is to use
   the rootfs from buildroot as the initrd (i.e. initrd=/boot/rootfs.gz).
   This initrd should mount the _real_ rootfs using pivot_root. The real
   rootfs is in the second partition (/dev/hda2) and is the _same_ rootfs
   built from buildroot. In other words, rootfs.gz = rootfs in /dev/hda2.
   Inside the initrd (ie rootfs.gz) is /linuxrc which will be read first
   by the kernel after mounting the initrd. Instead of pointing it to
   /bin/busybox, I'm going to create a custom linuxrc.
   My _problem_ starts here. I CAN'T chroot to the rootfs in /dev/hda2
   and execute the /linuxrc, which is still pointed /bin/busybox. I need
   to chroot because /linuxrc will initialize my rootfs and put up the
   login (ie /etc/inittab getty).
   linux /boot/bzImage console=ttyS0,9600
   (since it's a serial console)
   #!/bin/sh
   echo "linuxrc execute"
   mount -t proc /proc /proc
   mkdir new_root
   mount -t ext2 /dev/hda2 /new_root
   umount proc
   cd /new_root
   pivot_root . initrd
   mount -t proc proc proc
   mount -t devfs devfs dev
   exec /usr/sbin/chroot . 'exec /linuxrc' \
   <dev/console >dev/console 2>&1
   I'm stuck after the execution pivot_root. It seems that dev/console is
   busy.
   And this stops linuxrc from continuing?
   ...
   cd /new_root
   exec < dev/console &> dev/console
   pivot_root . initrd
   ...
   Moot Account
   2006-11-05 16:30:01 UTC
   [92]Permalink
   Hi,
   This is a bloated idea but it's just an exercise. The idea is to use
   the rootfs from buildroot as the initrd (i.e. initrd=/boot/rootfs.gz).
   This initrd should mount the _real_ rootfs using pivot_root. The real
   rootfs is in the second partition (/dev/hda2) and is the _same_ rootfs
   built from buildroot. In other words, rootfs.gz = rootfs in /dev/hda2.
   Inside the initrd (ie rootfs.gz) is /linuxrc which will be read first
   by the kernel after mounting the initrd. Instead of pointing it to
   /bin/busybox, I'm going to create a custom linuxrc.
   My _problem_ starts here. I CAN'T chroot to the rootfs in /dev/hda2
   and execute the /linuxrc, which is still pointed /bin/busybox. I need
   to chroot because /linuxrc will initialize my rootfs and put up the
   login (ie /etc/inittab getty).
   Here are my arguments to the kernel:
   linux /boot/bzImage console=ttyS0,9600
   (since it's a serial console)
   This is the custom linuxrc that does _not_ work:
   #!/bin/sh
   echo "linuxrc execute"
   mount -t proc /proc /proc
   mkdir new_root
   mount -t ext2 /dev/hda2 /new_root
   umount proc
   cd /new_root
   pivot_root . initrd
   mount -t proc proc proc
   mount -t devfs devfs dev
   exec /usr/sbin/chroot . 'exec /linuxrc' \
   <dev/console >dev/console 2>&1
   I'm stuck after the execution pivot_root. It seems that dev/console is
   busy.
   Thanks for any help.
   Luciano Miguel Ferreira Rocha
   2006-11-05 16:52:52 UTC
   [93]Permalink
   [94]Post by Moot Account
   Hi,
   This is a bloated idea but it's just an exercise. The idea is to use
   the rootfs from buildroot as the initrd (i.e. initrd=/boot/rootfs.gz).
   This initrd should mount the _real_ rootfs using pivot_root. The real
   rootfs is in the second partition (/dev/hda2) and is the _same_ rootfs
   built from buildroot. In other words, rootfs.gz = rootfs in /dev/hda2.
   Inside the initrd (ie rootfs.gz) is /linuxrc which will be read first
   by the kernel after mounting the initrd. Instead of pointing it to
   /bin/busybox, I'm going to create a custom linuxrc.
   My _problem_ starts here. I CAN'T chroot to the rootfs in /dev/hda2
   and execute the /linuxrc, which is still pointed /bin/busybox. I need
   to chroot because /linuxrc will initialize my rootfs and put up the
   login (ie /etc/inittab getty).
   linux /boot/bzImage console=ttyS0,9600
   (since it's a serial console)
   #!/bin/sh
   echo "linuxrc execute"
   mount -t proc /proc /proc
   mkdir new_root
   mount -t ext2 /dev/hda2 /new_root
   umount proc
   cd /new_root
   pivot_root . initrd
   mount -t proc proc proc
   mount -t devfs devfs dev
   exec /usr/sbin/chroot . 'exec /linuxrc' \
   <dev/console >dev/console 2>&1
   I'm stuck after the execution pivot_root. It seems that dev/console is
   busy.
   And this stops linuxrc from continuing?
   Try:
   ...
   cd /new_root
   exec < dev/console &> dev/console
   pivot_root . initrd
   ...
   --
   lfr
   0/0
   -------------- next part --------------
   A non-text attachment was scrubbed...
   Name: not available
   Type: application/pgp-signature
   Size: 189 bytes
   Desc: not available
   Url :
   http://lists.busybox.net/pipermail/busybox/attachments/20061105/78ae3c9
   d/attachment-0002.pgp
   31 Replies
   147 Views
   [95]Permalink to this page
   [96]Disable enhanced parsing
   Thread Navigation
   Moot Account 2006-11-05 16:30:01 UTC
   Luciano Miguel Ferreira Rocha 2006-11-05 16:52:52 UTC
   Moot Account 2006-11-05 17:09:43 UTC
   Luciano Miguel Ferreira Rocha 2006-11-05 17:20:31 UTC
   Bernhard Fischer 2006-11-05 18:07:30 UTC
   Jason Schoon 2006-11-05 18:49:19 UTC
   Jason Schoon 2006-11-05 18:55:15 UTC
   Bernhard Fischer 2006-11-05 19:11:15 UTC
   Bernhard Fischer 2006-11-05 19:11:15 UTC
   Jason Schoon 2006-11-05 18:55:15 UTC
   Jason Schoon 2006-11-05 18:49:19 UTC
   Rob Landley 2006-11-05 20:19:40 UTC
   Luciano Miguel Ferreira Rocha 2006-11-05 23:34:31 UTC
   Rob Landley 2006-11-05 23:43:52 UTC
   Luciano Miguel Ferreira Rocha 2006-11-06 00:20:07 UTC
   Moot Account 2006-11-06 20:07:15 UTC
   Rob Landley 2006-11-07 21:48:09 UTC
   Rob Landley 2006-11-07 21:48:09 UTC
   Moot Account 2006-11-06 20:07:15 UTC
   Luciano Miguel Ferreira Rocha 2006-11-06 00:20:07 UTC
   Rob Landley 2006-11-05 23:43:52 UTC
   Luciano Miguel Ferreira Rocha 2006-11-05 23:34:31 UTC
   Rob Landley 2006-11-05 20:26:42 UTC
   Luciano Miguel Ferreira Rocha 2006-11-05 23:02:12 UTC
   Luciano Miguel Ferreira Rocha 2006-11-05 23:02:12 UTC
   Bernhard Fischer 2006-11-05 18:07:30 UTC
   Rob Landley 2006-11-05 20:19:40 UTC
   Rob Landley 2006-11-05 20:26:42 UTC
   Luciano Miguel Ferreira Rocha 2006-11-05 17:20:31 UTC
   Moot Account 2006-11-05 17:09:43 UTC
   Moot Account 2006-11-05 16:30:01 UTC
   Luciano Miguel Ferreira Rocha 2006-11-05 16:52:52 UTC

   [97]about - [98]legalese

   Loading...

References

   Visible links:
   1. https://busybox.busybox.narkive.com/
   2. https://narkive.com/PBeyeZOM.1
   3. https://narkive.com/PBeyeZOM.2
   4. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post1
   5. https://narkive.com/PBeyeZOM.3
   6. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post2
   7. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post1
   8. https://narkive.com/PBeyeZOM.4
   9. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post3
  10. https://narkive.com/PBeyeZOM.5
  11. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  12. https://narkive.com/PBeyeZOM.6
  13. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  14. https://narkive.com/PBeyeZOM.7
  15. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post6
  16. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  17. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  18. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  19. https://narkive.com/PBeyeZOM.8
  20. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post7
  21. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post5
  22. https://narkive.com/PBeyeZOM.24
  23. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post7
  24. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post5
  25. https://narkive.com/PBeyeZOM.23
  26. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post6
  27. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  28. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  29. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  30. https://narkive.com/PBeyeZOM.22
  31. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post5
  32. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  33. https://narkive.com/PBeyeZOM.9
  34. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  35. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  36. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  37. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  38. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  39. https://narkive.com/PBeyeZOM.12
  40. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post9
  41. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  42. https://narkive.com/PBeyeZOM.13
  43. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post12
  44. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post9
  45. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  46. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post12
  47. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post12
  48. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post12
  49. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post12
  50. https://narkive.com/PBeyeZOM.14
  51. https://narkive.com/PBeyeZOM.15
  52. https://narkive.com/PBeyeZOM.16
  53. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post15
  54. https://narkive.com/PBeyeZOM.32
  55. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post15
  56. https://narkive.com/PBeyeZOM.31
  57. https://narkive.com/PBeyeZOM.30
  58. https://narkive.com/PBeyeZOM.29
  59. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post12
  60. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post9
  61. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  62. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post12
  63. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post12
  64. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post12
  65. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post12
  66. https://narkive.com/PBeyeZOM.28
  67. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post9
  68. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  69. https://narkive.com/PBeyeZOM.10
  70. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  71. https://narkive.com/PBeyeZOM.11
  72. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post10
  73. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  74. https://narkive.com/PBeyeZOM.27
  75. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post10
  76. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  77. https://narkive.com/PBeyeZOM.21
  78. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  79. https://narkive.com/PBeyeZOM.25
  80. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  81. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  82. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  83. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  84. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  85. https://narkive.com/PBeyeZOM.26
  86. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
  87. https://narkive.com/PBeyeZOM.20
  88. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post3
  89. https://narkive.com/PBeyeZOM.19
  90. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post2
  91. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post1
  92. https://narkive.com/PBeyeZOM.17
  93. https://narkive.com/PBeyeZOM.18
  94. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post1
  95. https://narkive.com/PBeyeZOM
  96. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using?parse=disable
  97. https://narkive.com/about
  98. https://narkive.com/legalese

   Hidden links:
 100. https://narkive.com/
 101. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post1
 102. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post2
 103. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post3
 104. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post4
 105. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post5
 106. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post6
 107. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post7
 108. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post8
 109. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post24
 110. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post23
 111. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post22
 112. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post9
 113. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post12
 114. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post13
 115. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post14
 116. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post15
 117. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post16
 118. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post32
 119. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post31
 120. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post30
 121. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post29
 122. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post28
 123. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post10
 124. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post11
 125. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post27
 126. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post21
 127. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post25
 128. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post26
 129. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post20
 130. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post19
 131. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post17
 132. https://busybox.busybox.narkive.com/PBeyeZOM/custom-initrd-using#post18