]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
xen-image-maker: add FSTYPE variable because ct'-server not support ext4.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 14 Sep 2013 20:22:58 +0000 (22:22 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 14 Sep 2013 20:22:58 +0000 (22:22 +0200)
config/xen-image/xen-image-maker.sh

index 038b5785048bdf7b48f5151a4f658fa0e547fc14..4a7c7f2a7e3500fd11a5ab6ba4fb05f3ecc40539 100644 (file)
@@ -42,6 +42,8 @@ SIZEboot=30
 SIZEswap=512
 SIZEroot=512
 SIZEvar=950
+# ct'server does not support ext4 so change this to ext3.
+FSTYPE=ext4
 
 ##############################################################################
 
@@ -86,11 +88,11 @@ mkswap $IMGswap
 
 #Create rootimage
 dd bs=1M if=/dev/zero of=$IMGroot count=$SIZEroot
-mkfs.ext4 -F $IMGroot
+mkfs.$FSTYPE -F $IMGroot
 
 #Create varimage
 dd bs=1M if=/dev/zero of=$IMGvar count=$SIZEvar
-mkfs.ext4 -F $IMGvar
+mkfs.$FSTYPE -F $IMGvar
 
 echo --------------------------------------------------------
 echo - Intall IPFire to the Images ...
@@ -152,7 +154,7 @@ sed -i -e "s|DEVICE2|/dev/xvda2|g" $MNThdd/etc/fstab
 sed -i -e "s|DEVICE3|/dev/xvda3|g" $MNThdd/etc/fstab
 sed -i -e "s|DEVICE4|/dev/xvda4|g" $MNThdd/etc/fstab
 
-sed -i -e "s|FSTYPE|ext4|g" $MNThdd/etc/fstab
+sed -i -e "s|FSTYPE|$FSTYPE|g" $MNThdd/etc/fstab
 
 #Remove root / fstab check
 rm -rf $MNThdd/etc/rc.d/rcsysinit.d/S19checkfstab