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