166
166
# If this is a GPT partition, mark it as no-auto mounting, to avoid
167
167
# auto-activating it on boot
168
168
if [ "$(blkid -p -s PART_ENTRY_SCHEME -o value "$swap")" = "gpt" ]; then
172
178
if printf "x\np\n" | fdisk "$drive" | grep -q "^$swap .* GUID:.*\b63\b"; then
173
179
echo "$swap is already marked as no-auto"