fix autoprepare partition initializing

This commit is contained in:
Tobias Powalowski 2022-06-20 18:00:42 +02:00
parent 3d8785866c
commit f00578bcfa
2 changed files with 3 additions and 2 deletions

View file

@ -274,6 +274,7 @@ autoprepare() {
return 1
fi
# reread partitiontable for kernel
DIALOG --infobox "Waiting 15 seconds for ${DEVICE} to initialize ..." 0 0
partprobe "${DEVICE}"
printk on
## wait until /dev initialized correct devices
@ -333,7 +334,7 @@ autoprepare() {
DIALOG --infobox "Creating and activating swapspace on ${PART}" 0 0
fi
_mkfs "${DOMKFS}" "${PART}" "${FSTYPE}" "${DESTDIR}" "${MP}" "${LABEL_NAME}" "${FS_OPTIONS}" "${BTRFS_DEVICES}" ${BTRFS_LEVEL} ${BTRFS_SUBVOLUME} ${DOSUBVOLUME} ${BTRFS_COMPRESS} || return 1
sleep 3
sleep 1
done
DIALOG --infobox "Auto-prepare was successful.\nContinuing in 3 seconds..." 0 0

View file

@ -247,7 +247,7 @@ mountpoints() {
fi
_mkfs no "${PART}" "${FSTYPE}" "${DESTDIR}" "${MP}" "${LABEL_NAME}" "${FS_OPTIONS}" "${BTRFS_DEVICES}" "${BTRFS_LEVEL}" "${BTRFS_SUBVOLUME}" "${DOSUBVOLUME}" "${BTRFS_COMPRESS}" || return 1
fi
sleep 3
sleep 1
done < /tmp/.parts
printk on
DIALOG --infobox "Partitions were successfully mounted.\nContinuing in 3 seconds..." 0 0