Subversion Repositories livecd

Rev

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

Rev 84 Rev 100
Line 90... Line 90...
90
# mount unionfs or aufs
90
# mount unionfs or aufs
91
lsmod | grep -q ^unionfs
91
lsmod | grep -q ^unionfs
92
if [ $? -eq 0 ]; then  
92
if [ $? -eq 0 ]; then  
93
    mount -t unionfs -o dirs=$CHANGES=rw unionfs $UNION
93
    mount -t unionfs -o dirs=$CHANGES=rw unionfs $UNION
94
    if [ $? -ne 0 ]; then fatal "can't setup union in $UNION directory"; fi
94
    if [ $? -ne 0 ]; then fatal "can't setup union in $UNION directory"; fi
-
 
95
    echolog "unionfs mounted"
95
else
96
else
96
    mount -t aufs -o br:$CHANGES=rw aufs $UNION
97
    mount -t aufs -o br:$CHANGES=rw aufs $UNION
97
    if [ $? -ne 0 ]; then fatal "can't setup union (aufs) in $UNION directory"; fi
98
    if [ $? -ne 0 ]; then fatal "can't setup union (aufs) in $UNION directory"; fi
-
 
99
    echolog "aufs mounted"
98
fi
100
fi
99
 
101
 
100
$DEBUGCMD
102
$DEBUGCMD
101
 
103
 
102
# try to find livecd data directory. If not found, try modprobing
104
# try to find livecd data directory. If not found, try modprobing
103
# USB and SATA kernel modules and repeat the find procedure again
105
# USB and SATA kernel modules and repeat the find procedure again
104
echolog "looking for data modules"
106
echolog "looking for data modules"
105
DATA="`find_live_data_dir $MOUNTDIR`";
107
DATA="`find_live_data_dir $MOUNTDIR`";
106
# if [ "$DATA" = "" ]; then modprobe_usb_modules; DATA="`find_live_data_dir $MOUNTDIR`"; fi
-
 
107
if [ "$DATA" = "" ]; then modprobe_usb_sata_modules; DATA="`find_live_data_dir $MOUNTDIR`"; fi
108
if [ "$DATA" = "" ]; then modprobe_usb_sata_modules; DATA="`find_live_data_dir $MOUNTDIR`"; fi
108
if [ "$DATA" = "" ]; then fatal "Data for LiveCD not found. Are you using SCSI?"; fi
109
if [ "$DATA" = "" ]; then fatal "Data for LiveCD not found. Are you using SCSI?"; fi
109
echolog "LiveCD found in: $DATA"
110
echolog "LiveCD found in: $DATA"
110
 
111
 
111
$DEBUGCMD
112
$DEBUGCMD