Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lipck
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osak
lipck
Commits
be41824d
Commit
be41824d
authored
10 years ago
by
Daniel Schulte
Browse files
Options
Downloads
Patches
Plain Diff
Passing rootfs reference to remaster_initrd to replace kernel modules in initrd
parent
a335e812
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+2
-2
2 additions, 2 deletions
Makefile
scripts/remaster_initrd.sh
+15
-1
15 additions, 1 deletion
scripts/remaster_initrd.sh
with
17 additions
and
3 deletions
Makefile
+
2
−
2
View file @
be41824d
...
...
@@ -196,8 +196,8 @@ initrd_clean:
$(
RM
)
"
$(
ARCH_DIR
)$(
STATE_DIR
)
/initrd_remastered"
initrd_remaster
:
$(ARCH_DIR)$(STATE_DIR)/initrd_remastered
$(call gentargets,$(STATE_DIR)/initrd_remastered)
:
$(call archdir
,
%)$(STATE_DIR)/initrd_extracted
$(
CURDIR
)
/scripts/remaster_initrd.sh
"
$(
CURDIR
)
"
"
$(
call archdir,
$*
)$(
INITRD
)
"
$(call gentargets,$(STATE_DIR)/initrd_remastered)
:
$(call archdir
,
%)$(STATE_DIR)/initrd_extracted
$(call archdir
,
%)$(STATE_DIR)/rootfs_finalized
$(
CURDIR
)
/scripts/remaster_initrd.sh
"
$(
CURDIR
)
"
"
$(
call archdir,
$*
)$(
INITRD
)
"
"
$(
call archdir,
$*
)$(
ROOTFS
)
"
touch
"
$(
call archdir,
$*
)$(
STATE_DIR
)
/initrd_remastered"
initrd_pack
:
$(ARCH_DIR)$(INITRD_TARGET)
...
...
This diff is collapsed.
Click to expand it.
scripts/remaster_initrd.sh
+
15
−
1
View file @
be41824d
...
...
@@ -20,6 +20,7 @@
SCRIPT_DIR
=
"
$1
"
IRD
=
"
$2
"
ROOTFS
=
"
$3
"
if
[
!
-d
"
$SCRIPT_DIR
"
]
;
then
echo
"Expected lipck base path as first argument!"
...
...
@@ -31,6 +32,11 @@ if [ ! -d "$IRD" ]; then
exit
2
fi
if
[
!
-d
"
$ROOTFS
"
]
;
then
echo
"Expected rootfs directory as third argument!"
exit
3
fi
CONTRIB_DIR
=
"
$SCRIPT_DIR
/contrib/initrd"
if
[
-e
"
$SCRIPT_DIR
/scripts/common_functions.sh"
]
;
then
...
...
@@ -63,9 +69,17 @@ function install_liphook()
cp
"
$CONTRIB_DIR
/initrd_hook/ORDER"
"
$IRD
/scripts/casper-bottom/"
}
function
replace_modules
()
{
local
version
=
$(
basename
$(
readlink
-f
"/mnt/data/lipck-work/x86_64/rootfs/vmlinuz"
)
|
cut
-d
'-'
-f2-
)
rm
-rf
"
$IRD
/lib/modules/*"
cp
-a
"
$ROOTFS
/lib/modules/
$version
"
"
$IRD
/lib/modules"
}
mkdir
-p
"
$IRD
/lip"
install_nmtelekinese
add_no_bootloader_icon
#
add_no_bootloader_icon
install_liphook
replace_modules
patch_all
"
$SCRIPT_DIR
/patches/initrd"
"
$IRD
"
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