Bug#385281: initramfs-tools: Could remove the mkdir's and mknod's from init script.

2006-08-30 Thread Tim Phipps
Package: initramfs-tools
Version: 0.76
Severity: minor

The top part of init has this:

mkdir /sys
mkdir /proc
mkdir /tmp
mkdir -p /var/lock

These can all be put in the initramfs image can't they? Also (not a
bug), I can't figure out how /root gets created, it's not in the image
and there's no mknod /root in any script.

-- Package-specific info:
-- /proc/cmdline
boot=local root=LABEL=root

-- /proc/filesystems
cramfs
ext3
udf
iso9660
vfat
ntfs

-- lsmod
Module  Size  Used by
ntfs  196748  0 
vfat   11936  0 
fat47676  1 vfat
isofs  32832  0 
nls_utf81920  0 
udf73376  0 
savage 30176  1 
drm63508  2 savage
nfsd  201828  13 
exportfs5600  1 nfsd
ipv6  228064  46 
p4_clockmod 4684  0 
speedstep_lib   4260  1 p4_clockmod
freq_table  4196  1 p4_clockmod
button  6320  0 
ac  4612  0 
battery 9252  0 
dm_mod 49140  0 
cpufreq_userspace   3732  1 
vt1211 19672  0 
hwmon_vid   2336  1 vt1211
i2c_isa 4512  1 vt1211
mousedev   10752  1 
eth139418884  0 
snd_seq_dummy   3492  0 
snd_seq_oss29060  0 
snd_seq_midi8000  0 
snd_seq_midi_event  6944  2 snd_seq_oss,snd_seq_midi
snd_seq46284  6 
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
via_agp 9312  1 
evdev   8736  3 
agpgart29776  2 drm,via_agp
snd_via82xx25912  0 
gameport   14440  1 snd_via82xx
snd_ac97_codec 83232  1 snd_via82xx
snd_ac97_bus2048  1 snd_ac97_codec
snd_pcm_oss44384  0 
snd_mixer_oss  16160  1 snd_pcm_oss
snd_pcm78248  3 snd_via82xx,snd_ac97_codec,snd_pcm_oss
snd_timer  21924  2 snd_seq,snd_pcm
snd_page_alloc  9800  2 snd_via82xx,snd_pcm
snd_mpu401_uart 7200  1 snd_via82xx
snd_rawmidi23392  2 snd_seq_midi,snd_mpu401_uart
snd_seq_device  8236  5 
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq,snd_rawmidi
snd48704  11 
snd_seq_oss,snd_seq,snd_via82xx,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
cx88_blackbird 17916  0 
cx8800 29420  1 cx88_blackbird
compat_ioctl32  1184  1 cx8800
v4l1_compat12068  1 cx8800
v4l2_common 7360  2 cx88_blackbird,cx8800
cx88_dvb   11492  1 
cx8802 11268  2 cx88_blackbird,cx88_dvb
cx88xx 59844  4 cx88_blackbird,cx8800,cx88_dvb,cx8802
ir_common   9156  1 cx88xx
btcx_risc   4520  3 cx8800,cx8802,cx88xx
tveeprom   13520  1 cx88xx
videodev9312  3 cx88_blackbird,cx8800,cx88xx
cx88_vp3054_i2c 3872  1 cx88_dvb
i2c_algo_bit8136  2 cx88xx,cx88_vp3054_i2c
mt352   5668  1 cx88_dvb
or51132 8900  1 cx88_dvb
video_buf_dvb   6276  1 cx88_dvb
dvb_core   72672  1 video_buf_dvb
video_buf  20548  6 
cx88_blackbird,cx8800,cx88_dvb,cx8802,cx88xx,video_buf_dvb
nxt200x11652  1 cx88_dvb
firmware_class 10144  3 cx88_blackbird,or51132,nxt200x
cx24123 7748  1 cx88_dvb
lgdt330x7036  1 cx88_dvb
cx22702 5700  1 cx88_dvb
dvb_pll11140  4 cx88_dvb,or51132,nxt200x,cx22702
shpchp 39776  0 
pci_hotplug25940  1 shpchp
i2c_viapro  7892  0 
i2c_core   20240  13 
vt1211,i2c_isa,cx88_dvb,cx88xx,tveeprom,i2c_algo_bit,mt352,or51132,nxt200x,cx24123,lgdt330x,cx22702,i2c_viapro
ide_cd 35808  0 
cdrom  32304  1 ide_cd
psmouse34600  0 
via_ircc   23380  0 
ohci1394   30416  0 
rtc12660  0 
serio_raw   6756  0 
ieee1394   87256  2 eth1394,ohci1394
irda  163356  1 via_ircc
pcspkr  3300  0 
crc_ccitt   1952  1 irda
soundcore   9600  1 snd
thermal13000  0 
processor  22336  1 thermal
fan 4452  0 
via_rhine  22536  0 
mii 5056  1 via_rhine
ide_disk   14752  6 
via82cxxx   7972  0 [permanent]
ide_core  113168  3 ide_cd,ide_disk,via82cxxx
usbhid 32704  0 
uhci_hcd   27920  0 
ehci_hcd   28360  0 
usbcore   114240  4 usbhid,uhci_hcd,ehci_hcd
nfs   195820  0 
lockd  54824  3 nfsd,nfs
nfs_acl 3264  2 

Bug#385281: initramfs-tools: Could remove the mkdir's and mknod's from init script.

2006-08-30 Thread maximilian attems
hello,

On Wed, 30 Aug 2006, Tim Phipps wrote:

 The top part of init has this:
 
 mkdir /sys
 mkdir /proc
 mkdir /tmp
 mkdir -p /var/lock

they are very fast to create on initramfs,
i'll put guards on those too if someone thinks to need to ship
them in initramfs.
 
 These can all be put in the initramfs image can't they? Also (not a
 bug), I can't figure out how /root gets created, it's not in the image
 and there's no mknod /root in any script.

i don't get your mknod /root, what are you searching for??

[ -d /root ] || mkdir --mode=0700 /root
is done on top of init.

 
 -- /proc/cmdline
 boot=local root=LABEL=root

boot=local is redundant or was it needed for the LABEL thing?
 
regards

-- 
maks


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]