Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
abuild
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
25
Issues
25
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
abuild
Commits
5e4b955f
Commit
5e4b955f
authored
Jan 28, 2009
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initramfs-init: mount new root before apkovl is extracted
also create the symlink for kernel modules
parent
7b27ce7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
initramfs-init
initramfs-init
+4
-1
No files found.
initramfs-init
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
...
...
Write
Preview
Markdown
is supported
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