Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open
cryptops-initrd
Commits
19a40535
Commit
19a40535
authored
Jun 26, 2019
by
Arie Peterson
🐚
Browse files
Load kernel modules to tmpfs mount
parent
5847bf1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
crypt-initrd-extra-files/init
View file @
19a40535
...
...
@@ -337,6 +337,10 @@ unset fsckfix
mount
-n
-o
move /sys
${
rootmnt
}
/sys
mount
-n
-o
move /proc
${
rootmnt
}
/proc
mount
-t
tmpfs
-o
size
=
100M,mode
=
0700 modules
${
rootmnt
}
/lib/modules/
cd
${
rootmnt
}
/lib/modules/
tar
xfz /modules.tgz
# Chain to real filesystem
if
[
-z
"
$drop_caps
"
]
&&
command
-v
switch_root
>
/dev/null 2>&1
;
then
exec
switch_root
${
rootmnt
}
${
init
}
"
$@
"
<
${
rootmnt
}
/dev/console
>
${
rootmnt
}
/dev/console
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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