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
eb9a1a84
Commit
eb9a1a84
authored
16 years ago
by
Natanael Copa
Browse files
Options
Downloads
Patches
Plain Diff
initram: support for root=/dev/md0, create busybox links
parent
60258b46
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
initramfs-init
+13
-1
13 additions, 1 deletion
initramfs-init
with
13 additions
and
1 deletion
initramfs-init
+
13
−
1
View file @
eb9a1a84
#!/bin/sh
#!/bin/
busybox
sh
# this is the init script version
# this is the init script version
VERSION
=
1.0
VERSION
=
1.0
NEWROOT
=
/newroot
NEWROOT
=
/newroot
SINGLEMODE
=
no
SINGLEMODE
=
no
/bin/busybox
--install
-s
# basic environment
# basic environment
export
PATH
=
/usr/bin:/bin:/usr/sbin:/sbin
export
PATH
=
/usr/bin:/bin:/usr/sbin:/sbin
...
@@ -125,6 +127,16 @@ eend 0
...
@@ -125,6 +127,16 @@ eend 0
# check if root=... was set
# check if root=... was set
if
[
-n
"
$KOPT_root
"
]
;
then
if
[
-n
"
$KOPT_root
"
]
;
then
if
[
"
$SINGLEMODE
"
=
"yes"
]
;
then
echo
"Entering single mode. Type 'exit' to continue booting."
sh
fi
case
"
$KOPT_root
"
in
/dev/md
*
)
mknod
$KOPT_root
b 9
${
KOPT_root
#/dev/md
}
raidautorun
"
$KOPT_root
"
;;
esac
ebegin
"Mounting root"
ebegin
"Mounting root"
retry_mount
$KOPT_root
$NEWROOT
2>/dev/null
retry_mount
$KOPT_root
$NEWROOT
2>/dev/null
eend
$?
eend
$?
...
...
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