Skip to content

Commit 67c01e4

Browse files
committed
Switch filesystem to xfs
Signed-off-by: Manuel Alejandro de Brito Fontes <[email protected]>
1 parent c5395f6 commit 67c01e4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ami/files/functions.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ migrate_and_mount_disk() {
339339
local temp_path="/mnt${folder_path}"
340340
local old_path="${folder_path}-old"
341341

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}
344344

345345
# check if the folder already exists
346346
if [ -d "${folder_path}" ]; then
@@ -355,7 +355,7 @@ migrate_and_mount_disk() {
355355
mkdir -p ${folder_path}
356356

357357
# 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
359359
mount -a
360360
}
361361

@@ -374,9 +374,9 @@ partition_disks() {
374374
local disk_name=$1
375375

376376
# partition the disk
377-
parted -a optimal -s $disk_name \
377+
parted -a optimal -s "$disk_name" \
378378
mklabel gpt \
379-
mkpart home ext4 0% 90%
379+
mkpart home xfs 0% 90%
380380

381381
# wait for the disks to settle
382382
sleep 5

0 commit comments

Comments
 (0)