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
1754b3b0
Commit
1754b3b0
authored
Sep 30, 2021
by
Mikhail Efremov
Committed by
Anton Midyukov
Oct 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init: Fix 65-os-release
Handle /usr/lib/os-release if it exists.
parent
6c53cd86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
65-os-release
features.in/init/rootfs/image-scripts.d/65-os-release
+10
-8
No files found.
features.in/init/rootfs/image-scripts.d/65-os-release
View file @
1754b3b0
#!/bin/sh
# Install /etc/*-release files if needed
if
[
-d
/usr/share/branding-data-current
]
;
then
local
rel_file
=
for
rel_file
in
altlinux-release os-release
;
do
if
!
[
-e
/etc/
"
$rel_file
"
]
;
then
# in case it is dangling symlink
rm
-f
/etc/
"
$rel_file
"
rel_file
=
for
rel_file
in
altlinux-release os-release
;
do
if
!
[
-e
/etc/
"
$rel_file
"
]
;
then
# in case it is dangling symlink
rm
-f
/etc/
"
$rel_file
"
if
[
-r
/usr/share/branding-data-current/release/
"
$rel_file
"
]
;
then
cp
-at
/etc
--
\
/usr/share/branding-data-current/release/
"
$rel_file
"
elif
[
-r
/usr/lib/
"
$rel_file
"
]
;
then
cp
-a
/usr/lib/
"
$rel_file
"
/etc/
"
$rel_file
"
fi
done
fi
fi
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