Browse Source

Run partition tool if we can

master
nolim1t 5 years ago
parent
commit
4b2774fdd5
No known key found for this signature in database GPG Key ID: F6287B82CC84BCBD
  1. 12
      stage2/01-sys-tweaks/files/rc.local

12
stage2/01-sys-tweaks/files/rc.local

@ -27,12 +27,12 @@ fi
# Check for disk partition status
if [ ! -f /home/umbrel/statuses/disk-partitioned ]; then
if [ ! -f /home/umbrel/contrib/partitioner/partitioner.py ]; then
echo "Run partition tool"
echo "This is a placeholder - so please put in /home/umbrel/statuses/disk-partitioned and run /etc/rc.local again"
# Uncomment when ready
#touch /home/umbrel/statuses/disk-partitioned
#chown -R umbrel.umbrel /home/umbrel/statuses/disk-partitioned
if [ -f /home/umbrel/contrib/partitioner/partitioner.py ]; then
echo "Run partition tool or quit out if unavailable"
/home/umbrel/contrib/partitioner/partitioner.py || exit 1
touch /home/umbrel/statuses/disk-partitioned
chown -R umbrel.umbrel /home/umbrel/statuses/disk-partitioned
else
echo "Could not find partition tool - some steps might be skipped"
fi

Loading…
Cancel
Save