mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-06 00:58:16 +00:00
chore(deck): Remove useless system storage check when formatting
There isn't a case where we'd ever be working with anything but a micro SD card
This commit is contained in:
parent
2c4128099c
commit
c13d8b6b05
@ -36,12 +36,6 @@ if [[ ! -e "$STORAGE_DEVICE" ]]; then
|
||||
exit 19 #ENODEV
|
||||
fi
|
||||
|
||||
# Prevent accidental formatting of system drives
|
||||
if [[ $(lsblk -d -n -r -o hotplug "$STORAGE_DEVICE") != "1" ]]; then
|
||||
echo "$STORAGE_DEVICE is not a hotplug device"
|
||||
exit 19 #ENODEV
|
||||
fi
|
||||
|
||||
STORAGE_PARTBASE="${STORAGE_PARTITION#/dev/}"
|
||||
|
||||
systemctl stop steamos-automount@"$STORAGE_PARTBASE".service
|
||||
|
Loading…
Reference in New Issue
Block a user