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
0
Issues
0
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
74e5734e
Commit
74e5734e
authored
May 25, 2012
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
80-make-initfs: optimize for newer make-initrd
legion@ implemented skipping depmod call, and that's several more seconds for most of the images; let's shave these off if possible.
parent
3e7346f4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
80-make-initfs
features.in/stage2/stage1/scripts.d/80-make-initfs
+15
-4
No files found.
features.in/stage2/stage1/scripts.d/80-make-initfs
View file @
74e5734e
#!/bin/sh -efu
#!/bin/sh -efu
# NB: /etc/initrd.mk carefully prepared by earlier scripts
# NB: /etc/initrd.mk carefully prepared by earlier scripts
kver
=
"
$(
rpm
-qa
'kernel-image*'
--qf
'%{installtime} %{version}-%{name}-%{release}\n'
\
kver
=
"
$(
rpm
-qa
'kernel-image*'
\
--qf
'%{installtime} %{version}-%{name}-%{release}\n'
\
|
sort
-n
\
|
sort
-n
\
|
tail
-n
1
\
|
tail
-n
1
\
|
cut
-f
2
-d
' '
\
|
cut
-f
2
-d
' '
\
|
sed
's/kernel-image-//'
)
"
|
sed
's/kernel-image-//'
)
"
make-initrd
--no-checks
-k
$kver
\
MAKE_INITRD_OPTS
=
"--no-checks -k
$kver
"
&&
gzip
< /boot/initrd-
$kver
.img
>
$(
getconf LIBDIR
)
/propagator/initfs
\
MAKE_INITRD_VER
=
"
`
make-initrd
-V
\
||
exit
1
|
sed
-rn
's/^make-initrd version ([0-9.]+)/\1/p'
`
"
if
[
"
`
rpmvercmp
"
$MAKE_INITRD_VER
"
"0.7.8"
`
"
!=
"-1"
]
;
then
MAKE_INITRD_OPTS
=
"
$MAKE_INITRD_OPTS
--no-depmod"
fi
if
make-initrd
$MAKE_INITRD_OPTS
;
then
gzip
< /boot/initrd-
$kver
.img
>
$(
getconf LIBDIR
)
/propagator/initfs
else
exit
1
fi
[
-h
/boot/vmlinuz
]
||
ln
-s
vmlinuz-
$kver
/boot/vmlinuz
[
-h
/boot/vmlinuz
]
||
ln
-s
vmlinuz-
$kver
/boot/vmlinuz
[
-h
/boot/initrd.img
]
||
ln
-s
initrd-
$kver
.img /boot/initrd.img
[
-h
/boot/initrd.img
]
||
ln
-s
initrd-
$kver
.img /boot/initrd.img
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