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
95c11400
Commit
95c11400
authored
Jun 28, 2019
by
Arie Peterson
🐚
Browse files
Create tmpfs mount only if modules tarball is present
parent
19a40535
Changes
1
Show whitespace changes
Inline
Side-by-side
crypt-initrd-extra-files/init
View file @
95c11400
...
...
@@ -337,9 +337,11 @@ 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
if
[
-e
/modules.tgz
]
;
then
mount
-t
tmpfs
-o
size
=
100M,mode
=
0700 modules
${
rootmnt
}
/lib/modules/
cd
${
rootmnt
}
/lib/modules/
tar
xfz /modules.tgz
fi
# Chain to real filesystem
if
[
-z
"
$drop_caps
"
]
&&
command
-v
switch_root
>
/dev/null 2>&1
;
then
...
...
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