mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
xen-image-maker: add FSTYPE variable because ct'-server not support ext4.
This commit is contained in:
@@ -42,6 +42,8 @@ SIZEboot=30
|
|||||||
SIZEswap=512
|
SIZEswap=512
|
||||||
SIZEroot=512
|
SIZEroot=512
|
||||||
SIZEvar=950
|
SIZEvar=950
|
||||||
|
# ct'server does not support ext4 so change this to ext3.
|
||||||
|
FSTYPE=ext4
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
@@ -86,11 +88,11 @@ mkswap $IMGswap
|
|||||||
|
|
||||||
#Create rootimage
|
#Create rootimage
|
||||||
dd bs=1M if=/dev/zero of=$IMGroot count=$SIZEroot
|
dd bs=1M if=/dev/zero of=$IMGroot count=$SIZEroot
|
||||||
mkfs.ext4 -F $IMGroot
|
mkfs.$FSTYPE -F $IMGroot
|
||||||
|
|
||||||
#Create varimage
|
#Create varimage
|
||||||
dd bs=1M if=/dev/zero of=$IMGvar count=$SIZEvar
|
dd bs=1M if=/dev/zero of=$IMGvar count=$SIZEvar
|
||||||
mkfs.ext4 -F $IMGvar
|
mkfs.$FSTYPE -F $IMGvar
|
||||||
|
|
||||||
echo --------------------------------------------------------
|
echo --------------------------------------------------------
|
||||||
echo - Intall IPFire to the Images ...
|
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|DEVICE3|/dev/xvda3|g" $MNThdd/etc/fstab
|
||||||
sed -i -e "s|DEVICE4|/dev/xvda4|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
|
#Remove root / fstab check
|
||||||
rm -rf $MNThdd/etc/rc.d/rcsysinit.d/S19checkfstab
|
rm -rf $MNThdd/etc/rc.d/rcsysinit.d/S19checkfstab
|
||||||
|
|||||||
Reference in New Issue
Block a user