mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add more comments on what is still missing in btrfs
This commit is contained in:
parent
3f82f6e35b
commit
036ae45a1d
1 changed files with 5 additions and 6 deletions
|
@ -1972,13 +1972,15 @@ check_btrfs_subvolume(){
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
### TODO: - need to check for available free subvolumes! If no subvolumes present go on create one!
|
||||||
|
# - use subvolumes_in_use instead of $SUBVOLUME!
|
||||||
|
# - BTRFS_DEVICE is not reset on chosing other device!
|
||||||
prepare_btrfs_subvolume() {
|
prepare_btrfs_subvolume() {
|
||||||
DOSUBVOLUME="no"
|
DOSUBVOLUME="no"
|
||||||
BTRFS_SUBVOLUME=""
|
BTRFS_SUBVOLUME=""
|
||||||
if [ "$SKIP_ASK_SUBVOLUME" = "no" ]; then
|
if [ "$SKIP_ASK_SUBVOLUME" = "no" ]; then
|
||||||
DIALOG --yesno "Would you like to create a subvolume on $PART?" 0 0 && DOSUBVOLUME="yes"
|
DIALOG --yesno "Would you like to create a subvolume on $PART?" 0 0 && DOSUBVOLUME="yes"
|
||||||
else
|
else
|
||||||
### TODO: need to check for available free subvolumes! If no subvolumes present go on create one!
|
|
||||||
DOSUBVOLUME="yes"
|
DOSUBVOLUME="yes"
|
||||||
fi
|
fi
|
||||||
if [ "$DOSUBVOLUME" = "yes" ]; then
|
if [ "$DOSUBVOLUME" = "yes" ]; then
|
||||||
|
@ -2019,14 +2021,10 @@ find_btrfs_subvolume() {
|
||||||
[ "$1" ] && echo $1
|
[ "$1" ] && echo $1
|
||||||
done
|
done
|
||||||
umount_btrfs
|
umount_btrfs
|
||||||
### NOT NEEDED, you will be asked for create new subvolumes then!
|
|
||||||
#else
|
|
||||||
# # use the one from /tmp/.parts
|
|
||||||
# echo $SUBVOLUME
|
|
||||||
# [ "$1" ] && echo $1
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# subvolumes already in use
|
||||||
subvolumes_in_use() {
|
subvolumes_in_use() {
|
||||||
SUBVOLUME_IN_USE=""
|
SUBVOLUME_IN_USE=""
|
||||||
for i in $(grep $PART[:#] /tmp/.parts); do
|
for i in $(grep $PART[:#] /tmp/.parts); do
|
||||||
|
@ -2079,6 +2077,7 @@ btrfs_subvolume() {
|
||||||
if [ $ASK_MOUNTPOINTS = "1" ]; then
|
if [ $ASK_MOUNTPOINTS = "1" ]; then
|
||||||
# create subvolume if requested
|
# create subvolume if requested
|
||||||
# choose btrfs subvolume if present
|
# choose btrfs subvolume if present
|
||||||
|
### TODO: I think this can be done now in an other way!
|
||||||
if ! [ "$(find_btrfs_subvolume)" = "" ]; then
|
if ! [ "$(find_btrfs_subvolume)" = "" ]; then
|
||||||
prepare_btrfs_subvolume || return 1
|
prepare_btrfs_subvolume || return 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue