<< Mars >>
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
    
<< 2010 >>
FAQ/HOWTO
04/01/2006 : Comment utiliser urpmi --parallel
09/03/2005 : Comment installer plusieurs distributions
07/07/2004 : Introduction à Linux
07/07/2004 : Gestion des logiciels ( tar.gz, rpm et urpmi )
07/07/2004 : Comment installer le pilote NForce ?

Linux Wizard - Listing initrd content with lsinitrd

Linux : Listing initrd content with lsinitrd27/05/2009 19:52:41

The initrd used by most distribution to boot a Linux OS is most of the time a black magic box for most people. Today i've learn a new command from Andrey Borzenkov on the Cooker ML : lsinitrd. This command, from the nash package, allow to list the content of the initrd. For example to list the content of the default initrd used to boot your system, just do the following command as root :
lsinitrd /boot/initrd.img.

With lsinitrd, you will be able to see the list of modules included and thus loaded at boot, or the commands executed. This is especially useful for people needed specific modules not include automatically in the initrd by mkinitrd : they will be able to check if the right modules are icluded, or the right commands used. On a Mandriva cooker system using ext3 on standard partitions ( no LVM, no software RAID, no encryption ), this give the following output :

[root@info1 boot]# lsinitrd /boot/initrd.img                                                                                                                 
/boot/initrd.img:                                                                                                                                            
========================================================================                                                                                     
-rwx------   1 root     root         2461 May 27 16:12 init                                                                                                  
drwx------   3 root     root            0 May 27 16:12 usr                                                                                                   
drwx------   4 root     root            0 May 27 16:12 usr/lib                                                                                               
-rwxr-xr-x   1 root     root       801164 May 11 08:59 usr/lib/libglib-2.0.so.0.2100.0                                                                       
-rwxr-xr-x   1 root     root       137824 Dec 18 13:49 usr/lib/libjpeg.so.62.0.0                                                                             
-rwxr-xr-x   1 root     root        13956 Apr  7 23:11 usr/lib/libbdevid.so.6.0.63                                                                           
lrwxrwxrwx   1 root     root           27 May 27 16:12 usr/lib/libpng12.so.0 -> /usr/lib/libpng12.so.0.36.0                                                  
-rwxr-xr-x   1 root     root        87560 Feb 20 13:31 usr/lib/libelf-0.140.so                                                                               
lrwxrwxrwx   1 root     root           32 May 27 16:12 usr/lib/libglib-2.0.so.0 -> /usr/lib/libglib-2.0.so.0.2100.0                                          
-rwxr-xr-x   1 root     root        21940 Apr 18 09:50 usr/lib/libsplashy.so.1.0.0                                                                           
-rwxr-xr-x   1 root     root       106308 Apr  7 23:11 usr/lib/libnash.so.6.0.63                                                                             
lrwxrwxrwx   1 root     root           31 May 27 16:12 usr/lib/libsplashycnf.so.1 -> /usr/lib/libsplashycnf.so.1.0.0                                         
-rwxr-xr-x   1 root     root       534584 Mar 12 17:25 usr/lib/libfreetype.so.6.3.20                                                                         
lrwxrwxrwx   1 root     root           31 May 27 16:12 usr/lib/libfusion-1.2.so.0 -> /usr/lib/libfusion-1.2.so.0.7.0                                         
lrwxrwxrwx   1 root     root           25 May 27 16:12 usr/lib/liblzo2.so.2 -> /usr/lib/liblzo2.so.2.0.0                                                     
drwx------   7 root     root            0 May 27 16:12 usr/lib/directfb-1.2-0                                                                                
drwx------   2 root     root            0 May 27 16:12 usr/lib/directfb-1.2-0/gfxdrivers                                                                     
-rw-r--r--   1 root     root        21948 Mar 25 19:53 usr/lib/directfb-1.2-0/gfxdrivers/libdirectfb_i810.so                                                 
-rw-r--r--   1 root     root        38332 Mar 25 19:53 usr/lib/directfb-1.2-0/gfxdrivers/libdirectfb_mach64.so                                               
-rw-r--r--   1 root     root       112284 Mar 25 19:53 usr/lib/directfb-1.2-0/gfxdrivers/libdirectfb_nvidia.so                                               
-rw-r--r--   1 root     root        17820 Mar 25 19:53 usr/lib/directfb-1.2-0/gfxdrivers/libdirectfb_ati128.so                                               
-rw-r--r--   1 root     root        21848 Mar 25 19:53 usr/lib/directfb-1.2-0/gfxdrivers/libdirectfb_savage.so                                               
-rw-r--r--   1 root     root        13640 Mar 25 19:53 usr/lib/directfb-1.2-0/gfxdrivers/libdirectfb_sis315.so                                               
-rw-r--r--   1 root     root        42620 Mar 25 19:53 usr/lib/directfb-1.2-0/gfxdrivers/libdirectfb_cle266.so                                               
-rw-r--r--   1 root     root        46412 Mar 25 19:53 usr/lib/directfb-1.2-0/gfxdrivers/libdirectfb_nsc.so                                                  
-rw-r--r--   1 root     root       129008 Mar 25 19:53 usr/lib/directfb-1.2-0/gfxdrivers/libdirectfb_radeon.so                                               
-rw-r--r--   1 root     root        51028 Mar 25 19:53 usr/lib/directfb-1.2-0/gfxdrivers/libdirectfb_unichrome.so                                            
-rw-r--r--   1 root     root        22112 Mar 25 19:53 usr/lib/directfb-1.2-0/gfxdrivers/libdirectfb_cyber5k.so                                              
-rw-r--r--   1 root     root        13728 Mar 25 19:53 usr/lib/directfb-1.2-0/gfxdrivers/libdirectfb_neomagic.so                                             
-rw-r--r--   1 root     root        17852 Mar 25 19:53 usr/lib/directfb-1.2-0/gfxdrivers/libdirectfb_i830.so                                                 
-rw-r--r--   1 root     root        13592 Mar 25 19:53 usr/lib/directfb-1.2-0/gfxdrivers/libdirectfb_tdfx.so                                                 
drwx------   5 root     root            0 May 27 16:12 usr/lib/directfb-1.2-0/interfaces                                                                     
drwx------   2 root     root            0 May 27 16:12 usr/lib/directfb-1.2-0/interfaces/IDirectFBFont                                                       
-rw-r--r--   1 root     root        13716 Mar 25 19:53 usr/lib/directfb-1.2-0/interfaces/IDirectFBFont/libidirectfbfont_ft2.so                               
-rw-r--r--   1 root     root         9564 Mar 25 19:53 usr/lib/directfb-1.2-0/interfaces/IDirectFBFont/libidirectfbfont_dgiff.so                             
-rw-r--r--   1 root     root        26892 Mar 25 19:53 usr/lib/directfb-1.2-0/interfaces/IDirectFBFont/libidirectfbfont_default.so                           
drwx------   2 root     root            0 May 27 16:12 usr/lib/directfb-1.2-0/interfaces/IDirectFBVideoProvider                                              
-rw-r--r--   1 root     root        17816 Mar 25 19:53 usr/lib/directfb-1.2-0/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_v4l.so             
-rw-r--r--   1 root     root        17776 Mar 25 19:53 usr/lib/directfb-1.2-0/interfaces/IDirectFBVideoProvider/libidirectfbvideoprovider_gif.so             
drwx------   2 root     root            0 May 27 16:12 usr/lib/directfb-1.2-0/interfaces/IDirectFBImageProvider                                              
-rw-r--r--   1 root     root        13632 Mar 25 19:53 usr/lib/directfb-1.2-0/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_gif.so             
-rw-r--r--   1 root     root        13688 Mar 25 19:53 usr/lib/directfb-1.2-0/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.so             
-rw-r--r--   1 root     root        13676 Mar 25 19:53 usr/lib/directfb-1.2-0/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_jpeg.so            
-rw-r--r--   1 root     root         9532 Mar 25 19:53 usr/lib/directfb-1.2-0/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_dfiff.so           
drwx------   2 root     root            0 May 27 16:12 usr/lib/directfb-1.2-0/wm                                                                             
-rw-r--r--   1 root     root        38520 Mar 25 19:53 usr/lib/directfb-1.2-0/wm/libdirectfbwm_default.so                                                    
drwx------   2 root     root            0 May 27 16:12 usr/lib/directfb-1.2-0/systems                                                                        
-rw-r--r--   1 root     root        51152 Mar 25 19:53 usr/lib/directfb-1.2-0/systems/libdirectfb_fbdev.so                                                   
drwx------   2 root     root            0 May 27 16:12 usr/lib/directfb-1.2-0/inputdrivers                                                                   
-rw-r--r--   1 root     root        13700 Mar 25 19:53 usr/lib/directfb-1.2-0/inputdrivers/libdirectfb_keyboard.so                                           
-rwxr-xr-x   1 root     root       173904 May  8 08:16 usr/lib/libpng12.so.0.36.0                                                                            
-rwxr-xr-x   1 root     root        38412 Mar 25 19:53 usr/lib/libfusion-1.2.so.0.7.0                                                                        
lrwxrwxrwx   1 root     root           24 May 27 16:12 usr/lib/libelf.so.1 -> /usr/lib/libelf-0.140.so                                                       
-rwxr-xr-x   1 root     root       140648 Dec 21 17:40 usr/lib/liblzo2.so.2.0.0                                                                              
-rwxr-xr-x   1 root     root       529020 Mar 25 19:53 usr/lib/libdirectfb-1.2.so.0.7.0                                                                      
lrwxrwxrwx   1 root     root           31 May 27 16:12 usr/lib/libdirect-1.2.so.0 -> /usr/lib/libdirect-1.2.so.0.7.0                                         
lrwxrwxrwx   1 root     root           33 May 27 16:12 usr/lib/libdirectfb-1.2.so.0 -> /usr/lib/libdirectfb-1.2.so.0.7.0                                     
lrwxrwxrwx   1 root     root           26 May 27 16:12 usr/lib/libjpeg.so.62 -> /usr/lib/libjpeg.so.62.0.0                                                   
lrwxrwxrwx   1 root     root           30 May 27 16:12 usr/lib/libfreetype.so.6 -> /usr/lib/libfreetype.so.6.3.20                                            
lrwxrwxrwx   1 root     root           31 May 27 16:12 usr/lib/libparted-1.8.so.8 -> /usr/lib/libparted-1.8.so.8.0.0                                         
lrwxrwxrwx   1 root     root           28 May 27 16:12 usr/lib/libsplashy.so.1 -> /usr/lib/libsplashy.so.1.0.0                                               
-rwxr-xr-x   1 root     root         9576 Apr 18 09:50 usr/lib/libsplashycnf.so.1.0.0                                                                        
-rwxr-xr-x   1 root     root       430348 Feb 26 16:49 usr/lib/libparted-1.8.so.8.0.0                                                                        
drwx------   2 root     root            0 May 27 16:12 usr/lib/suspend                                                                                       
-rwxr-xr-x   1 root     root        31292 Mar 27 12:59 usr/lib/suspend/resume                                                                                
-rwxr-xr-x   1 root     root        88232 Mar 25 19:53 usr/lib/libdirect-1.2.so.0.7.0                                                                        
drwx------   2 root     root            0 May 27 16:12 sys                                                                                                   
drwx------   2 root     root            0 May 27 16:12 proc                                                                                                  
drwx------   2 root     root            0 May 27 16:12 firmware                                                                                              
drwx------   2 root     root            0 May 27 16:12 bin                                                                                                   
-rwxr-xr-x   1 root     root        85008 Apr  7 23:11 bin/nash                                                                                              
lrwxrwxrwx   1 root     root           13 May 27 16:12 bin/splashy_chvt -> /sbin/splashy                                                                     
-rwxr-xr-x   1 root     root        30748 Feb  5 15:53 bin/modprobe                                                                                          
-rwxr-xr-x   1 root     root         5496 Apr 18 09:50 bin/splashy_update                                                                                    
lrwxrwxrwx   1 root     root           23 May 27 16:12 bin/resume -> /usr/lib/suspend/resume                                                                 
-rwxr-xr-x   1 root     root        18368 Apr 18 09:50 bin/splashy                                                                                           
-rwxr-xr-x   1 root     root         9832 Feb  5 15:53 bin/rmmod                                                                                             
drwx------   3 root     root            0 May 27 16:12 dev                                                                                                   
brw-------   1 root     root       1,   1 May 27 16:12 dev/ram1                                                                                              
crw-------   1 root     root       1,   3 May 27 16:12 dev/null                                                                                              
lrwxrwxrwx   1 root     root            4 May 27 16:12 dev/ram -> ram1                                                                                       
crw-------   1 root     root       4,  67 May 27 16:12 dev/ttyS3                                                                                             
crw-------   1 root     root       4,   9 May 27 16:12 dev/tty9                                                                                              
crw-------   1 root     root       4,   6 May 27 16:12 dev/tty6                                                                                              
crw-------   1 root     root       4,   2 May 27 16:12 dev/tty2                                                                                              
crw-------   1 root     root       4,   7 May 27 16:12 dev/tty7                                                                                              
crw-------   1 root     root       5,   1 May 27 16:12 dev/console                                                                                           
crw-------   1 root     root       4,   0 May 27 16:12 dev/tty0                                                                                              
crw-------   1 root     root       4,   8 May 27 16:12 dev/tty8                                                                                              
crw-------   1 root     root       4,  11 May 27 16:12 dev/tty11                                                                                             
crw-------   1 root     root       1,   5 May 27 16:12 dev/zero                                                                                              
brw-------   1 root     root       1,   0 May 27 16:12 dev/ram0                                                                                              
crw-------   1 root     root       4,  12 May 27 16:12 dev/tty12                                                                                             
crw-------   1 root     root       4,   5 May 27 16:12 dev/tty5                                                                                              
crw-------   1 root     root       4,  64 May 27 16:12 dev/ttyS0                                                                                             
crw-------   1 root     root       4,   1 May 27 16:12 dev/tty1                                                                                              
crw-------   1 root     root       5,   0 May 27 16:12 dev/tty                                                                                               
crw-------   1 root     root       4,  66 May 27 16:12 dev/ttyS2                                                                                             
crw-------   1 root     root       4,  65 May 27 16:12 dev/ttyS1                                                                                             
crw-------   1 root     root       5,   2 May 27 16:12 dev/ptmx                                                                                              
drwx------   2 root     root            0 May 27 16:12 dev/mapper                                                                                            
crw-------   1 root     root       4,   3 May 27 16:12 dev/tty3                                                                                              
crw-------   1 root     root       4,   4 May 27 16:12 dev/tty4                                                                                              
crw-------   1 root     root       4,   0 May 27 16:12 dev/systty                                                                                            
crw-------   1 root     root       4,  10 May 27 16:12 dev/tty10                                                                                             
drwx------   2 root     root            0 May 27 16:12 mnt                                                                                                   
drwx------   5 root     root            0 May 27 16:12 etc                                                                                                   
drwx------   2 root     root            0 May 27 16:12 etc/blkid                                                                                             
drwx------   2 root     root            0 May 27 16:12 etc/ld.so.conf.d                                                                                      
-rw-r--r--   1 root     root          114 Apr 14 23:00 etc/ld.so.conf.d/standard.conf                                                                        
-rw-r--r--   1 root     root           14 Mar 28 15:03 etc/ld.so.conf.d/libarts1.conf                                                                        
-rw-r--r--   1 root     root         1817 Mar 27 12:58 etc/suspend.conf                                                                                      
-rw-r--r--   1 root     root         2207 May 27 16:12 etc/ld.so.cache                                                                                       
-rw-r--r--   1 root     root           33 Apr  6 21:21 etc/ld.so.conf                                                                                        
drwx------   3 root     root            0 May 27 16:12 lib                                                                                                   
lrwxrwxrwx   1 root     root           19 May 27 16:12 lib/libuuid.so.1 -> /lib/libuuid.so.1.2                                                               
lrwxrwxrwx   1 root     root           22 May 27 16:12 lib/libsysfs.so.2 -> /lib/libsysfs.so.2.0.1                                                           
-rwxr-xr-x   1 root     root        71380 Apr  6 21:22 lib/libresolv-2.9.so                                                                                  
-rwxr-xr-x   1 root     root         9680 Apr  6 21:22 lib/libdl-2.9.so                                                                                      
lrwxrwxrwx   1 root     root           16 May 27 16:12 lib/libm.so.6 -> /lib/libm-2.9.so                                                                     
-rwxr-xr-x   1 root     root       149336 Apr  6 21:22 lib/libm-2.9.so                                                                                       
lrwxrwxrwx   1 root     root           18 May 27 16:12 lib/libz.so.1 -> /lib/libz.so.1.2.3                                                                   
-rwxr-xr-x   1 root     root       202056 Jan 15 16:43 lib/libpcre.so.0.0.1                                                                                  
lrwxrwxrwx   1 root     root           21 May 27 16:12 lib/libpcre.so.0 -> /lib/libpcre.so.0.0.1                                                             
lrwxrwxrwx   1 root     root           21 May 27 16:12 lib/libpopt.so.0 -> /lib/libpopt.so.0.0.0                                                             
-rwxr-xr-x   1 root     root        17960 Feb  9 19:01 lib/libuuid.so.1.2                                                                                    
-rwxr-xr-x   1 root     root        46612 Dec 22 16:43 lib/libsysfs.so.2.0.1                                                                                 
-rwxr-xr-x   1 root     root        44932 Feb  9 19:01 lib/libblkid.so.1.0                                                                                   
-rwxr-xr-x   1 root     root       117752 May 19 12:51 lib/libgcc_s-4.4.0.so.1                                                                               
lrwxrwxrwx   1 root     root           24 May 27 16:12 lib/libgcc_s.so.1 -> /lib/libgcc_s-4.4.0.so.1                                                         
lrwxrwxrwx   1 root     root           20 May 27 16:12 lib/libblkid.so.1 -> /lib/libblkid.so.1.0                                                             
-rwxr-xr-x   1 root     root        78152 Dec 16 18:45 lib/libz.so.1.2.3                                                                                     
lrwxrwxrwx   1 root     root           25 May 27 16:12 lib/libmodprobe.so.0 -> /lib/libmodprobe.so.0.0.0                                                     
lrwxrwxrwx   1 root     root           21 May 27 16:12 lib/libresolv.so.2 -> /lib/libresolv-2.9.so                                                           
-rwxr-xr-x   1 root     root       602619 Apr  6 21:15 lib/ld-2.9.so                                                                                         
-rwxr-xr-x   1 root     root        90656 Aug  6  2008 lib/libdevmapper.so.1.02                                                                              
lrwxrwxrwx   1 root     root           22 May 27 16:12 lib/libpthread.so.0 -> /lib/libpthread-2.9.so                                                         
-rwxr-xr-x   1 root     root        26092 Feb  5 15:53 lib/libmodprobe.so.0.0.0                                                                              
-rwxr-xr-x   1 root     root       111636 Apr  6 21:21 lib/libpthread-2.9.so                                                                                 
-rwxr-xr-x   1 root     root      1376436 Apr  6 21:22 lib/libc-2.9.so                                                                                       
drwx------   3 root     root            0 May 27 16:12 lib/modules                                                                                           
drwx------   2 root     root            0 May 27 16:12 lib/modules/2.6.30-desktop-0.rc7.1mnb                                                                 
-rw-r--r--   1 root     root        80458 May 26 03:16 lib/modules/2.6.30-desktop-0.rc7.1mnb/scsi_mod.ko.gz                                                  
-rw-r--r--   1 root     root        19356 May 26 03:16 lib/modules/2.6.30-desktop-0.rc7.1mnb/sd_mod.ko.gz                                                    
-rw-------   1 root     root         3941 May 27 16:12 lib/modules/2.6.30-desktop-0.rc7.1mnb/modules.alias.bin                                               
-rw-r--r--   1 root     root        13270 May 26 03:16 lib/modules/2.6.30-desktop-0.rc7.1mnb/sata_nv.ko.gz                                                   
-rw-------   1 root     root          757 May 27 16:12 lib/modules/2.6.30-desktop-0.rc7.1mnb/modules.dep.bin                                                 
-rw-------   1 root     root        22168 May 27 16:12 lib/modules/2.6.30-desktop-0.rc7.1mnb/modules.symbols.bin                                             
-rw-r--r--   1 root     root        90624 May 26 03:16 lib/modules/2.6.30-desktop-0.rc7.1mnb/libata.ko.gz                                                    
-rw-r--r--   1 root     root         2790 May 26 03:16 lib/modules/2.6.30-desktop-0.rc7.1mnb/pata_acpi.ko.gz                                                 
-rw-------   1 root     root           43 May 27 16:12 lib/modules/2.6.30-desktop-0.rc7.1mnb/modules.seriomap                                                
-rw-r--r--   1 root     root        28161 May 26 03:16 lib/modules/2.6.30-desktop-0.rc7.1mnb/jbd.ko.gz                                                       
-rw-------   1 root     root           73 May 27 16:12 lib/modules/2.6.30-desktop-0.rc7.1mnb/modules.ieee1394map                                             
-rw-------   1 root     root        17149 May 27 16:12 lib/modules/2.6.30-desktop-0.rc7.1mnb/modules.symbols                                                 
-rw-r--r--   1 root     root         1886 May 26 03:16 lib/modules/2.6.30-desktop-0.rc7.1mnb/ide-generic.ko.gz                                               
-rw-------   1 root     root         5741 May 27 16:12 lib/modules/2.6.30-desktop-0.rc7.1mnb/modules.pcimap                                                  
-rw-------   1 root     root           74 May 27 16:12 lib/modules/2.6.30-desktop-0.rc7.1mnb/modules.ofmap                                                   
-rw-------   1 root     root          442 May 27 16:12 lib/modules/2.6.30-desktop-0.rc7.1mnb/modules.dep                                                     
-rw-r--r--   1 root     root        75829 May 26 03:16 lib/modules/2.6.30-desktop-0.rc7.1mnb/ext3.ko.gz                                                      
-rw-r--r--   1 root     root         3031 May 26 03:16 lib/modules/2.6.30-desktop-0.rc7.1mnb/ata_generic.ko.gz                                               
-rw-------   1 root     root         4038 May 27 16:12 lib/modules/2.6.30-desktop-0.rc7.1mnb/modules.alias                                                   
-rw-r--r--   1 root     root         1592 May 26 03:16 lib/modules/2.6.30-desktop-0.rc7.1mnb/crc-t10dif.ko.gz                                                
-rw-r--r--   1 root     root        14930 May 26 03:16 lib/modules/2.6.30-desktop-0.rc7.1mnb/ide-gd_mod.ko.gz                                                
-rw-r--r--   1 root     root         2332 May 26 03:16 lib/modules/2.6.30-desktop-0.rc7.1mnb/ide-pci-generic.ko.gz                                           
-rw-------   1 root     root          189 May 27 16:12 lib/modules/2.6.30-desktop-0.rc7.1mnb/modules.usbmap                                                  
-rw-------   1 root     root           69 May 27 16:12 lib/modules/2.6.30-desktop-0.rc7.1mnb/modules.ccwmap                                                  
-rw-------   1 root     root           81 May 27 16:12 lib/modules/2.6.30-desktop-0.rc7.1mnb/modules.isapnpmap                                               
-rw-------   1 root     root          141 May 27 16:12 lib/modules/2.6.30-desktop-0.rc7.1mnb/modules.inputmap                                                
-rw-r--r--   1 root     root         5350 May 26 03:16 lib/modules/2.6.30-desktop-0.rc7.1mnb/pata_amd.ko.gz                                                  
-rw-r--r--   1 root     root        59037 May 26 03:16 lib/modules/2.6.30-desktop-0.rc7.1mnb/ide-core.ko.gz                                                  
lrwxrwxrwx   1 root     root           17 May 27 16:12 lib/libdl.so.2 -> /lib/libdl-2.9.so                                                                   
lrwxrwxrwx   1 root     root           16 May 27 16:12 lib/libc.so.6 -> /lib/libc-2.9.so                                                                     
lrwxrwxrwx   1 root     root           14 May 27 16:12 lib/ld-linux.so.2 -> /lib/ld-2.9.so                                                                   
-rwxr-xr-x   1 root     root        30736 Oct 19  2008 lib/libpopt.so.0.0.0                                                                                  
drwx------   2 root     root            0 May 27 16:12 sysroot                                                                                               
lrwxrwxrwx   1 root     root            3 May 27 16:12 sbin -> bin                                                                                           
drwxr-xr-x   2 root     root            0 Apr 21 11:18 etc/splashy                                                                                           
-rw-r--r--   1 root     root          567 May 27 16:12 etc/splashy/config.xml                                                                                
drwxr-xr-x   8 root     root            0 Apr 18 09:49 etc/splashy/themes                                                                                    
drwxr-xr-x   2 root     root            0 Apr 23 16:42 etc/splashy/themes/Mandriva-Powerpack-800x600                                                         
-rw-r--r--   1 root     root        79193 Apr 23 15:19 etc/splashy/themes/Mandriva-Powerpack-800x600/suspend.jpg                                             
-rw-r--r--   1 root     root         3454 Apr 23 15:19 etc/splashy/themes/Mandriva-Powerpack-800x600/theme.xml                                               
drwxr-xr-x   4 root     root            0 Apr 18 09:49 usr/share/splashy                                                                                     
drwxr-xr-x   8 root     root            0 Apr 18 09:49 usr/share/splashy/themes                                                                              
-rw-r--r--   4 root     root       158823 Apr 23 15:19 etc/splashy/themes/Mandriva-Powerpack-800x600/background.jpg                                          
========================================================================                                                                                     
#!/bin/nash                                                                                                                                                  

mount -t proc /proc /proc
setquiet                 
echo Mounting proc filesystem
echo Mounting sysfs filesystem
mount -t sysfs /sys /sys      
echo Creating /dev            
mount -o mode=0755 -t tmpfs /dev /dev
mkdir /dev/pts                       
mount -t devpts -o gid=5,mode=620 /dev/pts /dev/pts
mkdir /dev/shm                                     
mkdir /dev/mapper                                  
echo Creating initial device nodes                 
mknod /dev/null c 1 3                              
mknod /dev/zero c 1 5                              
mknod /dev/systty c 4 0                            
mknod /dev/tty c 5 0                               
mknod /dev/console c 5 1                           
mknod /dev/ptmx c 5 2                              
mknod /dev/fb c 29 0                               
mknod /dev/fb0 c 29 0                              
mknod /dev/tty0 c 4 0                              
mknod /dev/tty1 c 4 1                              
mknod /dev/tty2 c 4 2                              
mknod /dev/tty3 c 4 3                              
mknod /dev/tty4 c 4 4                              
mknod /dev/tty5 c 4 5                              
mknod /dev/tty6 c 4 6                              
mknod /dev/tty7 c 4 7                              
mknod /dev/tty8 c 4 8                              
mknod /dev/tty9 c 4 9                              
mknod /dev/tty10 c 4 10                            
mknod /dev/tty11 c 4 11                            
mknod /dev/tty12 c 4 12                            
mknod /dev/ttyS0 c 4 64                            
mknod /dev/ttyS1 c 4 65                            
mknod /dev/ttyS2 c 4 66                            
mknod /dev/ttyS3 c 4 67                            
daemonize --ignore-missing /bin/plymouthd          
plymouth --show-splash                             
echo Starting splash.                              
nash-if-splash splashy_chvt 8                      
nash-if-splash splashy boot                        
echo Setting up hotplug.                           
hotplug                                            
echo Creating block device nodes.                  
mkblkdevs                                          
echo "Loading ext3 module"                         
modprobe -q ext3                                   
echo "Loading crc-t10dif module"                   
modprobe -q crc-t10dif                             
echo "Loading scsi_mod module"                     
modprobe -q scsi_mod                               
echo "Loading sd_mod module"                       
modprobe -q sd_mod
echo "Loading libata module"
modprobe -q libata
echo "Loading sata_nv module"
modprobe -q sata_nv
echo "Loading pata_acpi module"
modprobe -q pata_acpi
echo "Loading ide-core module"
modprobe -q ide-core
echo "Loading ide-disk module"
modprobe -q ide-disk
echo "Loading ide-pci-generic module"
modprobe -q ide-pci-generic
echo "Loading ata_generic module"
modprobe -q ata_generic
echo "Loading pata_amd module"
modprobe -q pata_amd
echo "Loading ide_generic module"
modprobe -q ide_generic
echo waiting for root device UUID=8141d62a-0254-4405-be04-40b0dcb52cd1 to appear (timeout 1min)
waitdev --timeout=60000000 --rootdev UUID=8141d62a-0254-4405-be04-40b0dcb52cd1
mkblkdevs
nash-resume
echo Creating root device.
mkrootdev -t ext3 -o relatime,defaults,data=writeback,ro UUID=8141d62a-0254-4405-be04-40b0dcb52cd1
echo Mounting root filesystem.
mount /sysroot
echo Setting up other filesystems.
setuproot
loadpolicy
plymouth --newroot=/sysroot
echo Switching to new root and running init.
nash-if-splash splashy_update "chroot /sysroot"
switchroot
echo Booting has failed.
nash-if-splash splashy_update exit
nash-if-splash splashy_chvt 1
sleep -1
init
========================================================================

new comment 2 comment (s)  
Bookmark and Share
FACORAT Fabrice