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
8e1dd12f
Commit
8e1dd12f
authored
Jul 20, 2019
by
Anton Midyukov
Committed by
Michael Shigorin
Aug 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel, tar2fs: do not create /boot/.origver
parent
938820ac
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
tar2fs
bin/tar2fs
+5
-5
07-kernel
features.in/build-vm/image-scripts.d/07-kernel
+0
-1
No files found.
bin/tar2fs
View file @
8e1dd12f
...
...
@@ -217,11 +217,11 @@ pushd $ROOTFS/boot
get_label
()
{
echo
"
${
1
# *
}
"
|
sed
-r
's,.*elbrus-([0-9a-z]+)-.*$,\1,'
;
}
KVERSIONS
=
if
[
-s
.origver
]
;
then
while
read
kver
;
do
KVERSIONS
=
"
$KVERSIONS
$kver
"
done
< .origver
fi
KVERSIONS
=
"
$(
chroot
"
$ROOTFS
"
rpm
-qa
'kernel-image*'
\
--qf
'%{installtime} %{version}-%{name}-%{release}\n'
\
|
sort
-n
\
|
cut
-f
2
-d
' '
\
|
sed
's/kernel-image-//'
)
"
[
-n
"
$KVERSIONS
"
]
||
fatal
"unable to deduce kernel version"
rm
-f
.origver
...
...
features.in/build-vm/image-scripts.d/07-kernel
View file @
8e1dd12f
...
...
@@ -11,7 +11,6 @@ kver="$(rpm -qa 'kernel-image*' \
[
-n
"
$kver
"
]
||
{
echo
"** unable to deduce kernel version"
>
&2
;
exit
1
;
}
cd
/boot
echo
"
$kver
"
>
.origver
# for tar2fs
make-initrd
-N
-k
"
$kver
"
AUTODETECT
=
\
FEATURES+
=
"
$GLOBAL_VM_INITRDFEATURES
"
\
...
...
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