mount disk

merge-requests/273/head
papajoker 7 years ago
parent b91da224d4
commit 96dde4db58

@ -3,9 +3,9 @@
--rescue
----mount ;mount_test_efi
------root ; mount_partition root
------root ; mount_partition /
--------back ; mnu_return 97
------home ; mount_partition home
------home ; mount_partition /home
--------back ; mnu_return 97
----InstBs ; check_mount ;
------Mirrorlisting

@ -334,7 +334,8 @@ mount_opts() {
}
mount_current_partition() {
[ -n "$1" ] && MOUNT="$1"
[ -n "$1" ] && PARTITION="$1"
[ -n "$2" ] && MOUNT="$2"
# Make the mount directory
mkdir -p ${MOUNTPOINT}${MOUNT} 2>$ERR
check_for_error "create mountpoint ${MOUNTPOINT}${MOUNT}" "$?"

@ -6,6 +6,7 @@
mount_test_efi() {
if [[ "$(ini system.bios)" == "UEFI" ]]; then
menu_item_insert "home" "efi/esp" "mount_partition efi"
# TODO: autodetect efi and automount ...
fi
}
@ -18,7 +19,7 @@ mount_partition() {
if ((i % 2==0)); then
s="$p"
else
menu_item_insert "" "$p $s" "mount_part $p $s"
menu_item_insert "" "$p $s" "mount_part $p $1"
fi
((i++))
done
@ -26,7 +27,7 @@ mount_partition() {
}
mount_part(){
mount_current_partition "$1"
mount_current_partition "$1" "$2"
return 0
}

Loading…
Cancel
Save