Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
mkinitfs
Commits
d1b64b99
Commit
d1b64b99
authored
Jun 07, 2021
by
Alan Diwix
Committed by
Natanael Copa
Jun 07, 2021
Browse files
Find resume device by UUID or LABEL
parent
a4d6120a
Changes
1
Hide whitespace changes
Inline
Side-by-side
initramfs-init.in
View file @
d1b64b99
...
...
@@ -515,7 +515,11 @@ if [ -n "$KOPT_root" ]; then
if
[
-n
"
$KOPT_resume
"
]
;
then
echo
"Resume from disk"
if
[
-e
/sys/power/resume
]
;
then
printf
"%d:%d"
$(
stat
-Lc
"0x%t 0x%T"
"
$KOPT_resume
"
)
>
/sys/power/resume
case
"
$KOPT_resume
"
in
UUID
*
|
LABEL
*
)
resume_dev
=
$(
findfs
"
$KOPT_resume
"
)
;;
*
)
resume_dev
=
"
$KOPT_resume
"
;;
esac
printf
"%d:%d"
$(
stat
-Lc
"0x%t 0x%T"
"
$resume_dev
"
)
>
/sys/power/resume
else
echo
"resume: no hibernation support found"
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment