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
0
Merge Requests
0
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
Anton Palgunov
mkimage-profiles
Commits
650e92bf
You need to sign in or sign up before continuing.
Commit
650e92bf
authored
Apr 10, 2018
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build-vm, tar2fs: handle multiple kernels either
This was crucial for e2k rescue image supporting multiple CPU versions but can be useful elsewhere.
parent
4743947e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
tar2fs
bin/tar2fs
+5
-3
07-kernel
features.in/build-vm/image-scripts.d/07-kernel
+0
-1
No files found.
bin/tar2fs
View file @
650e92bf
...
...
@@ -227,10 +227,12 @@ esac
# NB: don't stick BOOTFS here, it has slightly different semantics
pushd
$ROOTFS
/boot
if
[
-s
.origver
]
;
then
read
KVER < .origver
while
read
kver
;
do
chroot
"
$ROOTFS
"
make-initrd
-k
"
$kver
"
done
< .origver
else
fatal
"unable to deduce kernel version"
fi
[
-n
"
$KVER
"
]
||
fatal
"unable to deduce kernel version"
chroot
"
$ROOTFS
"
make-initrd
-k
"
$KVER
"
rm
-f
.origver
# ...target device too
...
...
features.in/build-vm/image-scripts.d/07-kernel
View file @
650e92bf
...
...
@@ -5,7 +5,6 @@
kver
=
"
$(
rpm
-qa
'kernel-image*'
\
--qf
'%{installtime} %{version}-%{name}-%{release}\n'
\
|
sort
-n
\
|
tail
-n
1
\
|
cut
-f
2
-d
' '
\
|
sed
's/kernel-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