mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
start adding SWAP file support
This commit is contained in:
parent
6e93dedab8
commit
e79470ad32
1 changed files with 1 additions and 1 deletions
|
@ -446,7 +446,7 @@ _mkfs() {
|
||||||
if [[ "${2}" == "swap" ]]; then
|
if [[ "${2}" == "swap" ]]; then
|
||||||
swapoff -a &>"${_NO_LOG}"
|
swapoff -a &>"${_NO_LOG}"
|
||||||
if [[ -n "${4}" ]]; then
|
if [[ -n "${4}" ]]; then
|
||||||
if _LSBLK NAME | grep -q "${1}"; then
|
if echo "${1}" | grep -q '^/dev'; then
|
||||||
mkswap -L "${6}" "${1}" &>"${_LOG}"
|
mkswap -L "${6}" "${1}" &>"${_LOG}"
|
||||||
else
|
else
|
||||||
mkswap "${7}" ${3}/"${1}" &>"${_LOG}"
|
mkswap "${7}" ${3}/"${1}" &>"${_LOG}"
|
||||||
|
|
Loading…
Reference in a new issue