Skip to content

Commit

Permalink
iso: insmod earlier
Browse files Browse the repository at this point in the history
Need to ensure the loadable kernel modules are loaded
BEFORE we start looking for hardware devices.

Signed-off-by: Mark D Horn <[email protected]>
  • Loading branch information
mdhorn committed Jun 4, 2020
1 parent bd34c10 commit b8fde93
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions iso_templates/initrd_init_template
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ main() {
mount -t devtmpfs none /dev
mount -t tmpfs none /run

# insmod required modules
{{range .Modules}}
insmod {{.}}
{{end}}

discover_tty

# Verify CPU features needed to run Clear exist
Expand All @@ -244,11 +249,6 @@ main() {
verify_media "$installer"
fi

# insmod required modules
{{range .Modules}}
insmod {{.}}
{{end}}

# Mount it
mount_installer "$installer"
overlay_and_switch
Expand Down

0 comments on commit b8fde93

Please sign in to comment.