> > + # return created swap size > > + echo $swap_log | grep -oP '(?<=size = )\w+' > > I think you need take into account the fact that the units of the mkswap > output will change depedning on the actual size. It might be better to > grab the size in bytes which is in the output as well. Sounds fair. I'll wait a bit more to see if some more people comment it, and I'll update it. > > -Lukas > > > } > > > > _swapon_file() { > > @@ -2628,7 +2632,7 @@ _require_scratch_swapfile() > > _scratch_mount > > > > # Minimum size for mkswap is 10 pages > > - _format_swapfile "$SCRATCH_MNT/swap" $(($(get_page_size) * 10)) > > + _format_swapfile "$SCRATCH_MNT/swap" $(($(get_page_size) * 10)) > /dev/null > > > > # ext* has supported all variants of swap files since their > > # introduction, so swapon should not fail. > > -- > > 2.31.1 > > > -- Carlos