Lines 56-61
Link Here
|
56 |
NORMAL=${BOLD} print_info 1 "Compiling Linux Kernel ${BOLD}${KV}${NORMAL} for ${BOLD}${ARCH}${NORMAL}..." |
56 |
NORMAL=${BOLD} print_info 1 "Compiling Linux Kernel ${BOLD}${KV}${NORMAL} for ${BOLD}${ARCH}${NORMAL}..." |
57 |
echo |
57 |
echo |
58 |
|
58 |
|
|
|
59 |
isBootRO() |
60 |
{ |
61 |
for mo in `grep "/boot" /proc/mounts |awk '{print $4}'|sed -e 's/,/ /'` |
62 |
do |
63 |
if [ "x${mo}x" == "xrox" ] |
64 |
then |
65 |
return 0 |
66 |
fi |
67 |
done |
68 |
return 1 |
69 |
} |
70 |
|
59 |
if ! has_loop |
71 |
if ! has_loop |
60 |
then |
72 |
then |
61 |
modprobe loop 2>/dev/null |
73 |
modprobe loop 2>/dev/null |
Lines 86-91
Link Here
|
86 |
print_warning 1 ' Run ``mount /boot`` to mount it!' |
98 |
print_warning 1 ' Run ``mount /boot`` to mount it!' |
87 |
echo |
99 |
echo |
88 |
fi |
100 |
fi |
|
|
101 |
elif isBootRO |
102 |
then |
103 |
if isTrue ${MOUNTBOOT} |
104 |
then |
105 |
if ! mount -o remount,rw /boot |
106 |
then |
107 |
print_warning 1 "${BOLD}WARNING${NORMAL}: Failed to remount /boot rw!" |
108 |
echo |
109 |
else |
110 |
print_info 1 "mount: /boot remounted readwrite successfully!" |
111 |
BOOTRW=1 |
112 |
fi |
113 |
fi |
89 |
fi |
114 |
fi |
90 |
|
115 |
|
91 |
# Check whether another Genkernel is running |
116 |
# Check whether another Genkernel is running |
Lines 187-192
Link Here
|
187 |
gen_minkernpackage |
212 |
gen_minkernpackage |
188 |
fi |
213 |
fi |
189 |
|
214 |
|
|
|
215 |
if [ "${BOOTRW}" != "" ] |
216 |
then |
217 |
mount -o remount,ro /boot |
218 |
fi |
219 |
|
190 |
print_info 1 '' |
220 |
print_info 1 '' |
191 |
print_info 1 "Kernel compiled successfully!" |
221 |
print_info 1 "Kernel compiled successfully!" |
192 |
print_info 1 '' |
222 |
print_info 1 '' |