RR: Fix swap being inproperly mounted

This commit is contained in:
Ward from fusion-voyager-3 2024-02-17 22:56:52 +03:00
parent 9e80f3c29f
commit 96a1a2a9b2
2 changed files with 7 additions and 7 deletions

View File

@ -39,18 +39,18 @@ for drivemount in /tmp/pika-installer-gtk4-target-manual-p*.json; do
PARTITION="/dev/$(jq -r .partition $drivemount)"
MOUNTPOINT="/media/pika-install-mount/$(jq -r .mountpoint $drivemount)"
MOUNTOPT=$(jq -r .mountopt $drivemount)
if [[ -z $MOUNTOPT ]]
if [[ $MOUNTPOINT = '/media/pika-install-mount/[SWAP]' ]]
then
touch /tmp/pika-installer-gtk4-swaplist
echo $PARTITION > /tmp/pika-installer-gtk4-swaplist
elif [[ -z $MOUNTOPT ]]
then
mkdir -p $MOUNTPOINT
mount $PARTITION $MOUNTPOINT
elif [[ $MOUNTPOINT == "[SWAP]" ]]
then
touch /tmp/pika-installer-gtk4-swaplist
echo $PARTITION > /tmp/pika-installer-gtk4-swaplist
else
mkdir -p $MOUNTPOINT
mount -o $MOUNTOPT $PARTITION $MOUNTPOINT
fi
fi
done
if [[ ! -f "/tmp/pika-installer-gtk4-crypttab" ]]

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
pika-installer-gtk4 (1.0.0-100pika11) pikauwu; urgency=low
pika-installer-gtk4 (1.0.0-100pika12) pikauwu; urgency=low
* First release