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
d9b6e4ec
Commit
d9b6e4ec
authored
15 years ago
by
Natanael Copa
Browse files
Options
Downloads
Patches
Plain Diff
initram: wait for usbdisk to settle
parent
1e3647e7
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
initramfs-init
+9
-2
9 additions, 2 deletions
initramfs-init
with
9 additions
and
2 deletions
initramfs-init
+
9
−
2
View file @
d9b6e4ec
...
@@ -198,6 +198,13 @@ eend 0
...
@@ -198,6 +198,13 @@ eend 0
mount
-t
tmpfs tmpfs
$NEWROOT
mount
-t
tmpfs tmpfs
$NEWROOT
# look for apkovl
# look for apkovl
if
dmesg |
grep
'^usb-storage: waiting'
>
/dev/null
;
then
ebegin
"Waiting for USB device to settle"
while
!
dmesg |
grep
'usb-storage: device scan complete'
>
/dev/null
;
do
sleep
1
done
eend 0
fi
for
i
in
usb floppy cdrom
;
do
for
i
in
usb floppy cdrom
;
do
mount /media/
$i
2>/dev/null
||
continue
mount /media/
$i
2>/dev/null
||
continue
ovl
=
$(
find_ovl /media/
$i
)
ovl
=
$(
find_ovl /media/
$i
)
...
@@ -212,7 +219,7 @@ if [ -f "$ovl" ]; then
...
@@ -212,7 +219,7 @@ if [ -f "$ovl" ]; then
ebegin
"Loading user settings from
$ovl
"
ebegin
"Loading user settings from
$ovl
"
tar
-C
$NEWROOT
-zxf
"
$ovl
"
tar
-C
$NEWROOT
-zxf
"
$ovl
"
eend
$?
eend
$?
umount /media/
$i
2>/dev/null
umount /media/
$i
2>/dev/null
&
pkgs
=
$(
sed
's/\#.*//'
$NEWROOT
/etc/lbu/packages.list 2>/dev/null
)
pkgs
=
$(
sed
's/\#.*//'
$NEWROOT
/etc/lbu/packages.list 2>/dev/null
)
fi
fi
...
@@ -255,9 +262,9 @@ cat /proc/mounts | while read DEV DIR TYPE OPTS ; do
...
@@ -255,9 +262,9 @@ cat /proc/mounts | while read DEV DIR TYPE OPTS ; do
mount
-o
move
$DIR
$NEWROOT
/
$DIR
mount
-o
move
$DIR
$NEWROOT
/
$DIR
fi
fi
done
done
ln
-sf
/.modloop/modules
$NEWROOT
/lib/modules
sync
sync
ln
-sf
/.modloop/modules
$NEWROOT
/lib/modules
echo
""
echo
""
if
[
-x
$NEWROOT
/sbin/init
]
;
then
if
[
-x
$NEWROOT
/sbin/init
]
;
then
exec
/bin/busybox switch_root
$NEWROOT
$chart_init
/sbin/init
$KOPT_init_args
exec
/bin/busybox switch_root
$NEWROOT
$chart_init
/sbin/init
$KOPT_init_args
...
...
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