mirror of
https://github.com/Fishwaldo/build.git
synced 2025-06-23 22:59:02 +00:00
Avoid kernel 5.x surprise
This commit is contained in:
parent
fa232d17ed
commit
71e7ad2e02
1 changed files with 2 additions and 2 deletions
|
@ -426,7 +426,7 @@ format_emmc()
|
|||
IFS=" "
|
||||
BTRFS=$(grep -o btrfs /proc/filesystems)
|
||||
FilesystemTargets="1 ext4 2 ext3 3 ext2 4 f2fs"
|
||||
[[ -n $BTRFS && `uname -r | grep '^4.' ` ]] && FilesystemTargets=$FilesystemTargets" 5 $BTRFS"
|
||||
[[ -n $BTRFS && `uname -r | grep '^3.' ` ]] || FilesystemTargets=$FilesystemTargets" 5 $BTRFS"
|
||||
FilesystemOptions=($FilesystemTargets)
|
||||
|
||||
FilesystemCmd=(dialog --title "Select filesystem type for eMMC $1" --backtitle "$backtitle" --menu "\n$infos" 10 60 16)
|
||||
|
@ -509,7 +509,7 @@ format_disk()
|
|||
*)
|
||||
BTRFS=$(grep -o btrfs /proc/filesystems)
|
||||
FilesystemTargets='1 ext4 2 ext3 3 ext2'
|
||||
[[ -n $BTRFS && `uname -r | grep '^4.' ` && $choice != 6 ]] && FilesystemTargets=$FilesystemTargets" 4 $BTRFS"
|
||||
[[ -n $BTRFS && ! `uname -r | grep '^3.' ` && $choice != 6 ]] && FilesystemTargets=$FilesystemTargets" 4 $BTRFS"
|
||||
;;
|
||||
esac
|
||||
FilesystemOptions=($FilesystemTargets)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue