Kaydet (Commit) da7bc735 authored tarafından Ali Rıza KESKİN's avatar Ali Rıza KESKİN

scsi_debug ve diğer debug kerneller ayara bağlandı

üst b1304955
...@@ -12,3 +12,7 @@ debug "Install drivers" ...@@ -12,3 +12,7 @@ debug "Install drivers"
cp -prf ${MODDIR}/kernel/drivers/{block,ata,md,firewire} ${WORKDIR}/${MODDIR} cp -prf ${MODDIR}/kernel/drivers/{block,ata,md,firewire} ${WORKDIR}/${MODDIR}
cp -prf ${MODDIR}/kernel/drivers/{scsi,pcmcia,virtio} ${WORKDIR}/${MODDIR} cp -prf ${MODDIR}/kernel/drivers/{scsi,pcmcia,virtio} ${WORKDIR}/${MODDIR}
cp -prf ${MODDIR}/kernel/drivers/usb/{host,storage} ${WORKDIR}/${MODDIR} cp -prf ${MODDIR}/kernel/drivers/usb/{host,storage} ${WORKDIR}/${MODDIR}
if [ "$debug" != "true" ] ; then
debug "Remove debug drivers"
find ${WORKDIR}/${MODDIR} | grep debug | xargs rm -rf
fi
...@@ -75,11 +75,11 @@ generate_cpio(){ ...@@ -75,11 +75,11 @@ generate_cpio(){
cd $WORKDIR cd $WORKDIR
if [ "$nocpio" != "true" ] ; then if [ "$nocpio" != "true" ] ; then
echo -ne " ${C_GREEN}*${C_CLEAR} $(translate 'Generating') " echo -ne " ${C_GREEN}*${C_CLEAR} $(translate 'Generating') "
find . | cpio -R root:root -H newc -o | gzip > $OUTPUT find . | cpio -R root:root -H newc -o | ${CPIO_COMPRESS} > $OUTPUT
fi fi
if [ "$fallback" == "true" ] ; then if [ "$fallback" == "true" ] ; then
echo -ne " ${C_GREEN}*${C_CLEAR} $(translate 'Generating fallback') " echo -ne " ${C_GREEN}*${C_CLEAR} $(translate 'Generating fallback') "
find . | cpio -R root:root -H newc -o | gzip > $OUTPUT-fallback find . | cpio -R root:root -H newc -o | ${CPIO_COMPRESS} > $OUTPUT-fallback
fi fi
} }
......
...@@ -10,6 +10,7 @@ if [ -t 0 ] && [ "$nocolor" != "true" ] ;then ...@@ -10,6 +10,7 @@ if [ -t 0 ] && [ "$nocolor" != "true" ] ;then
C_CLEAR='\e[m' C_CLEAR='\e[m'
fi fi
[ "$LANG" == "" ] && LANG="C" [ "$LANG" == "" ] && LANG="C"
[ "${CPIO_COMPRESS}" == "" ] && CPIO_COMPRESS=cat
LANGFILE=${LANGDIR}/$(echo $LANG).txt LANGFILE=${LANGDIR}/$(echo $LANG).txt
msg() { msg() {
message=$(translate $1) message=$(translate $1)
......
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
debug "Listing kernel modules" debug "Listing kernel modules"
find /lib/modules/ | sed "s/.*\///g" | grep "\.ko$" | sed "s/.ko$/ &/g" | sed "s/^/modprobe /g"> /load_modules.sh find /lib/modules/ | sed "s/.*\///g" | grep "\.ko$" | sed "s/.ko$/ &/g" | sed "s/^/modprobe /g"> /load_modules.sh
msg "Trying to load kernel modules" msg "Trying to load kernel modules"
sh /load_modules.sh 1>/dev/null 2>&1 sh /load_modules.sh &>/dev/null
msg "Waiting for kernel modules" msg "Waiting for kernel modules"
sleep 3 sleep 3
#!/busybox ash
tmpfile="/rootfs/$subdir/etc/initrd.remove"
rmv(){
while read line
do
if [ -f "$line" ] || [ -d "$line" ]; then
rm -rvf -- "$line"
fi
done
}
if [ -f "$tmpfile" ] ; then
cat "$tmpfile" | rmv
rm -f "$tmpfile"
touch "$tmpfile" 2>/dev/null || true
fi
homedir=/rootfs/$subdir/data/user/
[ -d $homedir ] || homedir=/rootfs/$subdir/home
if [ -d $homedir ] ; then
for user in $(ls $homedir)
do
rm -rf $homedir/$user/.cache
done
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment