Skip to content

Commit

Permalink
Add 254 major number
Browse files Browse the repository at this point in the history
virtmanager uses this major number for VirtIO drives.
This isn't strictly necessary to include but shouldn't cause any harm since for real hardware major number 254 should never be used as far as I know
  • Loading branch information
leomeinel authored Aug 26, 2022
1 parent 8562694 commit 2f32207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion partition-disks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ mountpoint -q /mnt &&
umount -AR /mnt

# Detect disks
readarray -t DISKS < <(lsblk -drnpo NAME -I 259,8 | tr -d "[:blank:]")
readarray -t DISKS < <(lsblk -drnpo NAME -I 259,8,254 | tr -d "[:blank:]")
DISKS_LENGTH="${#DISKS[@]}"
for (( i = 0; i < DISKS_LENGTH; i++ ))
do
Expand Down

0 comments on commit 2f32207

Please sign in to comment.