File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -339,8 +339,8 @@ migrate_and_mount_disk() {
339
339
local temp_path=" /mnt${folder_path} "
340
340
local old_path=" ${folder_path} -old"
341
341
342
- # install an ext4 filesystem to the disk
343
- mkfs -t ext4 ${disk_name}
342
+ # install an xfs filesystem to the disk
343
+ mkfs -t xfs ${disk_name}
344
344
345
345
# check if the folder already exists
346
346
if [ -d " ${folder_path} " ]; then
@@ -355,7 +355,7 @@ migrate_and_mount_disk() {
355
355
mkdir -p ${folder_path}
356
356
357
357
# add the mount point to fstab and mount the disk
358
- echo " UUID=$( blkid -s UUID -o value ${disk_name} ) ${folder_path} ext4 ${mount_options} 0 1" >> /etc/fstab
358
+ echo " UUID=$( blkid -s UUID -o value " ${disk_name} " ) ${folder_path} xfs ${mount_options} 0 1" >> /etc/fstab
359
359
mount -a
360
360
}
361
361
@@ -374,9 +374,9 @@ partition_disks() {
374
374
local disk_name=$1
375
375
376
376
# partition the disk
377
- parted -a optimal -s $disk_name \
377
+ parted -a optimal -s " $disk_name " \
378
378
mklabel gpt \
379
- mkpart home ext4 0% 90%
379
+ mkpart home xfs 0% 90%
380
380
381
381
# wait for the disks to settle
382
382
sleep 5
You can’t perform that action at this time.
0 commit comments