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

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 * First release