forked from pinecrypt/butterknife-provisioning-image
Explode overlay tar
This commit is contained in:
19
overlay/sbin/butterknife-select-btrfs-filesystem
Executable file
19
overlay/sbin/butterknife-select-btrfs-filesystem
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
volumes=$(mktemp)
|
||||
|
||||
unset partition
|
||||
for partition in $(blkid -t TYPE=btrfs | cut -d ":" -f 1); do
|
||||
echo "$partition \"$(butterknife-partition-size $partition)\"";
|
||||
done > $volumes
|
||||
|
||||
if [ -z $partition ]; then
|
||||
dialog --msgbox "Unable to detect any Butterknife filesystems" 0 0
|
||||
return 1
|
||||
else
|
||||
dialog \
|
||||
--menu "Select btrfs filesystem" 0 0 0 \
|
||||
--file $volumes
|
||||
fi
|
||||
|
||||
rm -f $volumes
|
Reference in New Issue
Block a user