Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakub Panek
aports
Commits
5e4b955f
Commit
5e4b955f
authored
16 years ago
by
Natanael Copa
Browse files
Options
Downloads
Patches
Plain Diff
initramfs-init: mount new root before apkovl is extracted
also create the symlink for kernel modules
parent
7b27ce7b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
initramfs-init
+4
-1
4 additions, 1 deletion
initramfs-init
with
4 additions
and
1 deletion
initramfs-init
+
4
−
1
View file @
5e4b955f
...
...
@@ -132,6 +132,8 @@ ebegin "Loading hardware drivers"
scan_drivers
eend 0
mount
-t
tmpfs
-o
size
=
50M tmpfs
$NEWROOT
# look for apkovl
for
i
in
usb floppy cdrom
;
do
mount /media/
$i
2>/dev/null
||
continue
...
...
@@ -150,7 +152,6 @@ fi
# install new root
ebegin
"Installing packages to root filesystem"
mount
-t
tmpfs
-o
size
=
50M tmpfs
$NEWROOT
apk add
--root
/newroot
--repository
/media/cdrom/apks
\
--initdb
--quiet
--progress
$pkgs
eend
$?
...
...
@@ -164,6 +165,8 @@ cat /proc/mounts | while read DEV DIR TYPE OPTS ; do
done
sync
ln
-sf
/.modloop/modules
$NEWROOT
/lib/modules
if
[
-x
$NEWROOT
/sbin/init
]
;
then
exec
/bin/busybox switch_root
$NEWROOT
/sbin/init
$KOPT_init_args
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment