Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
abuild
Commits
a549de26
Commit
a549de26
authored
Feb 02, 2009
by
Natanael Copa
Browse files
initramfs: use default tmpfs size for root
set default repositories
parent
102c4606
Changes
1
Hide whitespace changes
Inline
Side-by-side
initramfs-init
View file @
a549de26
...
...
@@ -133,7 +133,7 @@ ebegin "Loading hardware drivers"
scan_drivers
eend 0
mount
-t
tmpfs
-o
size
=
50M
tmpfs
$NEWROOT
mount
-t
tmpfs tmpfs
$NEWROOT
# look for apkovl
for
i
in
usb floppy cdrom
;
do
...
...
@@ -161,6 +161,11 @@ eend $?
cp
/media/
$ALPINE_DEV
/.alpine-release
$NEWROOT
/
ln
-sf
/.alpine-release
$NEWROOT
/etc/alpine-release
# if there is no repositories file, then use the default
if
!
[
-f
$NEWROOT
/etc/apk/repositories
]
;
then
echo
/media/
$ALPINE_DEV
/apks
>
$NEWROOT
/etc/apk/repositories
fi
# switch over to new root
cat
/proc/mounts |
while
read
DEV DIR TYPE OPTS
;
do
if
[
"
$DIR
"
!=
"/"
-a
"
$DIR
"
!=
"
$NEWROOT
"
-a
-d
"
$DIR
"
]
;
then
...
...
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