Subversion Repositories livecd

Rev

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

Rev 36 Rev 37
Line 36... Line 36...
36
INITRAMDISK=$MOUNTDIR/live
36
INITRAMDISK=$MOUNTDIR/live
37
 
37
 
38
# set NFSROOT if nfsroot= in boot parameter 
38
# set NFSROOT if nfsroot= in boot parameter 
39
NFSROOT="`cmdline_value nfsroot`"
39
NFSROOT="`cmdline_value nfsroot`"
40
 
40
 
41
# we need cdrom support, isofs support, unionfs support, etc
41
# we need cdrom support, isofs support, unionfs/aufs support, etc
42
modprobe_essential_modules
42
modprobe_essential_modules
43
setup_dma
43
setup_dma
44
 
44
 
45
$DEBUGCMD
45
$DEBUGCMD
46
 
46
 
Line 83... Line 83...
83
if [ $? -ne 0 ]; then mount -t tmpfs -o "size=$RAMSIZE" tmpfs $MEMORY; fi
83
if [ $? -ne 0 ]; then mount -t tmpfs -o "size=$RAMSIZE" tmpfs $MEMORY; fi
84
 
84
 
85
mkdir -p $CHANGES
85
mkdir -p $CHANGES
86
mkdir -p $COPY2RAM
86
mkdir -p $COPY2RAM
87
mkdir -p $IMAGES
87
mkdir -p $IMAGES
-
 
88
 
-
 
89
# mount unionfs or aufs
-
 
90
lsmod | grep -q ^unionfs
-
 
91
if [ $? -eq 0 ]; then  
88
mount -t unionfs -o dirs=$CHANGES=rw unionfs $UNION
92
    mount -t unionfs -o dirs=$CHANGES=rw unionfs $UNION
89
if [ $? -ne 0 ]; then fatal "can't setup union in /union directory"; fi
93
    if [ $? -ne 0 ]; then fatal "can't setup union in /union directory"; fi
-
 
94
else
-
 
95
    mount -t aufs -o br:$CHANGES=rw aufs $UNION
-
 
96
    if [ $? -ne 0 ]; then fatal "can't setup union (aufs)"; fi
-
 
97
fi
90
 
98
 
91
$DEBUGCMD
99
$DEBUGCMD
92
 
100
 
93
# try to find livecd data directory. If not found, try modprobing
101
# try to find livecd data directory. If not found, try modprobing
94
# USB and SATA kernel modules and repeat the find procedure again
102
# USB and SATA kernel modules and repeat the find procedure again