libqa: Switch to XFS by default for /

Docker tends to trigger kernel panics in fallocate with ext4, and XFS
is the RHEL7 default.
This commit is contained in:
Colin Walters 2014-03-11 18:02:58 -04:00
parent e3264d9c6c
commit fbfabf8574

View File

@ -165,8 +165,8 @@ function createDisk(diskpath, cancellable, params) {
gfHandle.mkswap_U(SWAP_UUID, "/dev/sda" + swapPartitionOffset);
}
let rootPartition = "/dev/sda" + rootPartitionOffset;
gfHandle.mkfs("ext4", rootPartition, null);
gfHandle.set_e2uuid(rootPartition, ROOT_UUID);
gfHandle.mkfs("xfs", rootPartition, null);
gfHandle.xfs_admin(rootPartition, new Guestfs.XfsAdmin({ "uuid": ROOT_UUID}));
gfHandle.mount(rootPartition, "/");
gfHandle.mkdir_mode("/boot", 493);
if (bootPartitionOffset > 0)