mirror of
https://github.com/bin456789/reinstall.git
synced 2025-07-22 02:48:05 +00:00
opensuse: 修复没有创建 swapfile 时 swapoff 报错
This commit is contained in:
4
trans.sh
4
trans.sh
@@ -3030,7 +3030,9 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
restore_resolv_conf $os_dir
|
restore_resolv_conf $os_dir
|
||||||
swapoff $os_dir/swapfile
|
|
||||||
|
# 删除 swap
|
||||||
|
swapoff -a
|
||||||
rm -f $os_dir/swapfile
|
rm -f $os_dir/swapfile
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user