Subversion Repositories livecd

Rev

Rev 161 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 161 Rev 163
Line 58... Line 58...
58
echolog "check for nfsroot or cifsroot"
58
echolog "check for nfsroot or cifsroot"
59
if [ "$NFSROOT" != "" ]; then
59
if [ "$NFSROOT" != "" ]; then
60
 
60
 
61
   echolog "nfsroot: $NFSROOT"
61
   echolog "nfsroot: $NFSROOT"
62
   $DEBUGCMD
62
   $DEBUGCMD
63
 
-
 
64
   # load network modules, if NFSROOT is set
-
 
65
   echolog "load network modules"
-
 
66
   load_network_modules
63
   load_network_modules
67
   $DEBUGCMD
64
   $DEBUGCMD
68
 
-
 
69
   # get DHCP lease
-
 
70
   get_dhcp_lease
65
   get_dhcp_lease
71
   $DEBUGCMD
66
   $DEBUGCMD
72
 
-
 
73
    # we need nfs modules loaded, if NFSROOT is set
-
 
74
    modprobe_nfs_modules
67
   modprobe_nfs_modules
75
 
68
 
76
# if CIFSROOT is set
69
# if CIFSROOT is set
77
elif [ "$CIFSROOT" != "" ]; then
70
elif [ "$CIFSROOT" != "" ]; then
78
 
71
 
79
   echolog "cifsroot: $CIFSROOT"
72
   echolog "cifsroot: $CIFSROOT"
80
   $DEBUGCMD
73
   $DEBUGCMD
81
 
-
 
82
   # load network modules, if CIFSROOT is set
-
 
83
   echolog "load network modules"
-
 
84
   load_network_modules
74
   load_network_modules
85
   $DEBUGCMD
75
   $DEBUGCMD
86
 
-
 
87
   # get DHCP lease
-
 
88
   get_dhcp_lease
76
   get_dhcp_lease
89
   $DEBUGCMD
77
   $DEBUGCMD
90
 
-
 
91
    # we need cifs modules loaded, if CIFSROOT is set
-
 
92
    modprobe_cifs_modules
78
   modprobe_cifs_modules
93
 
79
 
94
fi
80
fi
95
 
81
 
96
$DEBUGCMD
82
$DEBUGCMD
97
 
83
 
Line 101... Line 87...
101
mkdir -p $MEMORY
87
mkdir -p $MEMORY
102
 
88
 
103
CHANGESDEV="`cmdline_value changes`"
89
CHANGESDEV="`cmdline_value changes`"
104
if [ "$CHANGESDEV" != "" ]; then
90
if [ "$CHANGESDEV" != "" ]; then
105
   echo "mounting $CHANGESDEV to $MEMORY"
91
   echo "mounting $CHANGESDEV to $MEMORY"
-
 
92
   # we may need usb and sata support
-
 
93
   modprobe_usb_sata_modules
106
   mount_device $CHANGESDEV $MEMORY
94
   mount_device $CHANGESDEV $MEMORY
107
else false; fi
95
else false; fi
108
 
96
 
109
# mount tmpfs only in the case when changes= boot parameter was empty
97
# mount tmpfs only in the case when changes= boot parameter was empty
110
# or we were not able to mount the storage device
98
# or we were not able to mount the storage device