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
1
Issues
1
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
8e146cb5
Commit
8e146cb5
authored
Jul 13, 2023
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initrd-propagator: save more reproducible command in mkinitrd
parent
42161637
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
17 deletions
+12
-17
11-initrd-propagator
...n/initrd-propagator/stage1/scripts.d/11-initrd-propagator
+0
-7
80-make-initrd-for-propagator
...propagator/stage1/scripts.d/80-make-initrd-for-propagator
+12
-10
No files found.
features.in/initrd-propagator/stage1/scripts.d/11-initrd-propagator
deleted
100755 → 0
View file @
42161637
#!/bin/sh
# see also http://www.altlinux.org/Make-initrd-propagator
echo
'FEATURES += propagator'
>>
/etc/initrd.mk
# FIXME: #29705 workaround
echo
'MODULES_PRELOAD += ahci'
>>
/etc/initrd.mk
features.in/initrd-propagator/stage1/scripts.d/80-make-initrd-for-propagator
View file @
8e146cb5
...
...
@@ -18,38 +18,40 @@ done
[
-s
/.in/modules
]
||
fatal
"kernel modules set not found"
cat
>>
/etc/initrd.mk
<<
EOF
# copy initrd.mk to image
mkdir
-p
/.image/.disk
cp
/etc/initrd.mk /.image/.disk
cd
/.image
cat
>>
.disk/initrd.mk
<<
EOF
FEATURES += propagator
FEATURES += add-modules compress cleanup
EOF
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
"
>>
.disk
/initrd.mk
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
# with debug data as of make-initrd 2.2.12
rm
-vf
/usr/share/make-initrd/data/etc/udev/rules.d/00-debug.rules
\
/usr/share/make-initrd/data/lib/uevent/filters/debug
MAKE_INITRD_OPTS
=
"--no-checks AUTODETECT= "
MAKE_INITRD_OPTS
=
"--no-checks AUTODETECT=
-c .disk/initrd.mk
"
MAKE_INITRD_VER
=
"
`
make-initrd
-V
\
|
sed
-rn
's/^make-initrd version ([0-9.]+)/\1/p'
`
"
[
-z
"
$GLOBAL_VERBOSE
"
]
||
MAKE_INITRD_OPTS
=
"
$MAKE_INITRD_OPTS
-v"
cd
/boot
for
KVER
in
$kver
;
do
echo
make-initrd
$MAKE_INITRD_OPTS
-k
"
$KVER
"
>>
/.image/
.disk/mkinitrd
echo
make-initrd
$MAKE_INITRD_OPTS
-k
"
$KVER
"
>>
.disk/mkinitrd
make-initrd
$MAKE_INITRD_OPTS
-k
"
$KVER
"
||
fatal
"make-initrd failed"
done
cd
/boot
case
`
arch
`
in
e2k
)
kname
=
image
;;
...
...
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