Skip to content

Commit

Permalink
fix enable swap
Browse files Browse the repository at this point in the history
  • Loading branch information
honjow committed Sep 7, 2023
1 parent dc9b408 commit d4dab4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rootfs/usr/bin/sk-update-boot-entry
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ if [[ -n "${SWAP_PARTUUID}" ]]; then

elif [[ -n "${RESUME_OFFSET}" ]]; then
echo "RESUME_OFFSET 非空,添加到内核参数"
systemctl enable --now swapfile.service
systemctl enable --now frzr_root-swap-swapfile.swap
RESUME_CMD="resume=PARTUUID=${root_partuuid} resume_offset=${RESUME_OFFSET}"

elif [[ "${SWAP_FILE}" == "1" ]]; then
Expand Down

0 comments on commit d4dab4c

Please sign in to comment.