mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix autoprepare partition initializing
This commit is contained in:
parent
3d8785866c
commit
f00578bcfa
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue