2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 09:36:41 +00:00

Support xfs filesystem for statelite images

This commit is contained in:
cxhong 2020-04-22 15:44:35 -04:00
parent 81200d602a
commit 770be38f0c
3 changed files with 6 additions and 6 deletions

View File

@ -212,18 +212,18 @@ doconfigure () {
# create the filesystem
if [ x$fstype = x ]; then
fstype=ext3
fstype=ext4
fi
partnum=`expr $partnum + 1`
partdev=$dev$partnum
echo "Create filesystem $fstype on $partdev" >>$LOG
echo "mke2fs -q $partdev -t $fstype" >>$LOG
`mke2fs -q $partdev -t $fstype > /dev/null`
echo "mkfs.$fstype -q $partdev" >>$LOG
`mkfs.$fstype -q $partdev > /dev/null`
sleep 1
done
elif [ $localspace -eq 1 ]; then
if [ x$fstype = x ]; then
fstype=ext3
fstype=ext4
fi
echo "Mount $dev to $LOCAL with $fstype" >>$LOG
echo "mount -t $fstype $dev $MNTDIR$LOCAL" >>$LOG

View File

@ -3,7 +3,7 @@ echo $drivers
dracut_install curl tar cpio gzip modprobe touch echo cut wc xz
dracut_install grep ifconfig hostname awk egrep grep dirname expr
dracut_install mount.nfs
dracut_install parted mke2fs bc mkswap swapon chmod
dracut_install parted mke2fs bc mkswap swapon chmod mkfs mkfs.ext4 mkfs.xfs xfs_db
dracut_install ethtool
inst "$moddir/xcat-updateflag" "/tmp/updateflag"
inst "$moddir/xcatroot" "/sbin/xcatroot"

View File

@ -2,7 +2,7 @@
echo $drivers
dracut_install curl cpio gzip modprobe wc touch echo cut
dracut_install grep ifconfig hostname awk egrep grep dirname expr
dracut_install parted mke2fs bc mkswap swapon chmod
dracut_install parted mke2fs bc mkswap swapon chmod mkfs mkfs.ext4 mkfs.xfs xfs_db
dracut_install ethtool
inst "$moddir/xcat-updateflag" "/tmp/updateflag"
inst_hook pre-mount 5 "$moddir/xcat-premount.sh"