]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Add virtio blockdevice to installer
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 15 Aug 2009 19:59:25 +0000 (21:59 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 15 Aug 2009 19:59:25 +0000 (21:59 +0200)
doc/packages-list.txt
src/install+setup/install/mountdest.sh

index 6ad47d062a1559099c0bcaf71822061cf5e5c692..c974688454443e7ac889bf0bcd5bf7b520d64910 100644 (file)
 * fbset-2.1
 * fcron-3.0.4
 * feedparser-4.1
-* fetchmail-6.3.10
+* fetchmail-6.3.11
 * ffmpeg-export-2008-04-13
 * file-4.17
 * findutils-4.2.27
 * libmad-0.15.1b
 * libnet-1.1.2.1
 * libnl-1.1
-* libogg-1.1.3
+* libogg-1.1.4
 * libpcap-1.0.0
 * libpng-1.2.12
 * libpri-1.4.1
 * libtorrent-0.12.4
 * libupnp-1.6.6
 * libusb-0.1.12
-* libvorbis-1.2.0
+* libvorbis-1.2.3
 * libwww-perl-5.803
 * libxml2-2.6.26
 * libxslt-1.1.17
 * rssdler-0.4.0a
 * rsync-3.0.6
 * rtorrent-0.8.4
-* samba-3.3.6
+* samba-3.3.7
 * sane-1.0.19
 * screen-4.0.3
 * sdparm-1.01
index d1ce89b12e3ca0a1b6f65dc0a91a9606033e0848..11fd80056210ac7e56e9c2f2ca6c9ec66602a3d5 100644 (file)
@@ -33,7 +33,7 @@ for DEVICE in $(kudzu -qps -t 30 -c HD -b IDE | grep device: | cut -d ' ' -f 2 |
                        umount /harddisk 2> /dev/null
                        echo -n "$DEVICE" > /tmp/dest_device
                        echo "${DEVICE} - yes, it is our destination"
-                       exit 0
+                       exit 0 # IDE / use DEVICE for grub
                fi
 done
 
@@ -56,7 +56,7 @@ for DEVICE in $(kudzu -qps -t 30 -c HD -b SCSI | grep device: | cut -d ' ' -f 2
                                umount /harddisk 2> /dev/null
                                echo -n "$DEVICE" > /tmp/dest_device
                                echo "${DEVICE} - yes, it is our destination"
-                               exit 1
+                               exit 1 # SCSI/USB (always use /dev/sda as bootdevicename)
                        fi
                fi
 done
@@ -86,10 +86,39 @@ for DEVICE in $(kudzu -qps -t 30 -c HD -b RAID | grep device: | cut -d ' ' -f 2
                                else
                                        echo -n "$DEVICE" > /tmp/dest_device
                                        echo "${DEVICE} - yes, it is our destination"
-                                       exit 2
+                                       exit 2 # Raid ( /dev/device/diskx )
                                fi
                        fi
                fi
 done
 
+# Virtio devices
+echo "--> Virtio"
+for DEVICE in vda vdb vdc vdd; do
+               if [ ! -e /dev/${DEVICE} ]; then
+                       continue
+               else
+                       mount /dev/${DEVICE} /harddisk 2> /dev/null
+                       if [ -n "$(ls /harddisk/ipfire-*.tbz2 2>/dev/null)" ]; then
+                               umount /harddisk 2> /dev/null
+                               echo "${DEVICE} is source drive - SKIP"
+                               continue
+                       else
+                               umount /harddisk 2> /dev/null
+                               mount /dev/${DEVICE}1 /harddisk 2> /dev/null
+                               if [ -n "$(ls /harddisk/ipfire-*.tbz2 2>/dev/null)" ]; then
+                                       umount /harddisk 2> /dev/null
+                                       echo "${DEVICE}1 is source drive - SKIP"
+                                       continue
+                               else
+                                       umount /harddisk 2> /dev/null
+                                       echo -n "$DEVICE" > /tmp/dest_device
+                                       echo "${DEVICE} - yes, it is our destination"
+                                       exit 0 # like ide / use device for grub
+                               fi
+                       fi
+               fi
+done
+
+
 exit 10 # Nothing found