Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 41ad08b

Browse files
committed
Ask to use full USB Drive capacity.
1 parent a6c46df commit 41ad08b

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# IDEA project files
2+
.idea
3+
*.iml
4+
5+
# Build files
6+
target

bin/emrk-reinstall

+9-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,15 @@ mkfs.vfat $BOOT
8484

8585
# Root
8686
echo "Creating root partition"
87-
$PARTED --script $DEV mkpart primary ext3 150MB 1900MB
87+
echo "Use full USB Drive capacity?"
88+
$YESNO
89+
if [ $? == 0 ]; then
90+
# Use full capacity
91+
$PARTED --script $DEV mkpart primary ext3 150MB -1s
92+
else
93+
# Use only 1900MB for ROOT partion
94+
$PARTED --script $DEV mkpart primary ext3 150MB 1900MB
95+
fi
8896
echo "Formatting root partition"
8997
mkfs.ext3 -q $ROOT
9098

0 commit comments

Comments
 (0)