Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
ad6c7671
Commit
ad6c7671
authored
Mar 10, 2023
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initrd-{bootchain,propagator}: save initrd.mk, make-initrd to .disk/
parent
d9c96ec9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
80-make-initrd-for-bootchain
...d-bootchain/stage1/scripts.d/80-make-initrd-for-bootchain
+6
-0
80-make-initrd-for-propagator
...propagator/stage1/scripts.d/80-make-initrd-for-propagator
+5
-0
No files found.
features.in/initrd-bootchain/stage1/scripts.d/80-make-initrd-for-bootchain
View file @
ad6c7671
...
@@ -59,8 +59,14 @@ MAKE_INITRD_VER="`make-initrd -V \
...
@@ -59,8 +59,14 @@ MAKE_INITRD_VER="`make-initrd -V \
[
-z
"
$GLOBAL_VERBOSE
"
]
||
[
-z
"
$GLOBAL_VERBOSE
"
]
||
MAKE_INITRD_OPTS
=
"
$MAKE_INITRD_OPTS
-v"
MAKE_INITRD_OPTS
=
"
$MAKE_INITRD_OPTS
-v"
# copy initrd.mk to image
mkdir
-p
/.image/.disk
cp
/etc/initrd.mk /.image/.disk
cp
/etc/sysconfig/bootchain /.image/.disk
cd
/boot
cd
/boot
for
KVER
in
$kver
;
do
for
KVER
in
$kver
;
do
echo
make-initrd
$MAKE_INITRD_OPTS
-k
"
$KVER
"
>>
/.image/.disk/mkinitrd
make-initrd
$MAKE_INITRD_OPTS
-k
"
$KVER
"
||
make-initrd
$MAKE_INITRD_OPTS
-k
"
$KVER
"
||
fatal
"make-initrd failed"
fatal
"make-initrd failed"
done
done
...
...
features.in/initrd-propagator/stage1/scripts.d/80-make-initrd-for-propagator
View file @
ad6c7671
...
@@ -28,6 +28,10 @@ for module in $(grep -v ^# /.in/modules | sort -u | tr -s '\n' ' '); do
...
@@ -28,6 +28,10 @@ for module in $(grep -v ^# /.in/modules | sort -u | tr -s '\n' ' '); do
echo
"MODULES_TRY_ADD +=
$module
"
>>
/etc/initrd.mk
echo
"MODULES_TRY_ADD +=
$module
"
>>
/etc/initrd.mk
done
done
# copy initrd.mk to image
mkdir
-p
/.image/.disk
cp
/etc/initrd.mk /.image/.disk
# FIXME: large storage systems can get that tmpfs filled up
# FIXME: large storage systems can get that tmpfs filled up
# with debug data as of make-initrd 2.2.12
# with debug data as of make-initrd 2.2.12
rm
-vf
/usr/share/make-initrd/data/etc/udev/rules.d/00-debug.rules
\
rm
-vf
/usr/share/make-initrd/data/etc/udev/rules.d/00-debug.rules
\
...
@@ -43,6 +47,7 @@ MAKE_INITRD_VER="`make-initrd -V \
...
@@ -43,6 +47,7 @@ MAKE_INITRD_VER="`make-initrd -V \
cd
/boot
cd
/boot
for
KVER
in
$kver
;
do
for
KVER
in
$kver
;
do
echo
make-initrd
$MAKE_INITRD_OPTS
-k
"
$KVER
"
>>
/.image/.disk/mkinitrd
make-initrd
$MAKE_INITRD_OPTS
-k
"
$KVER
"
||
make-initrd
$MAKE_INITRD_OPTS
-k
"
$KVER
"
||
fatal
"make-initrd failed"
fatal
"make-initrd failed"
done
done
...
...
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