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
fa6ff9bd
Commit
fa6ff9bd
authored
Oct 18, 2021
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init: fix 65-os-release for rescue also
copy script from features.in/init/rootfs/image-scripts.d/65-os-release
parent
e5db0040
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
65-os-release
features.in/init/rescue/image-scripts.d/65-os-release
+13
-8
No files found.
features.in/init/rescue/image-scripts.d/65-os-release
View file @
fa6ff9bd
#!/bin/sh
# Install /etc/*-release files if needed
if
[
-d
/usr/share/branding-data-current
]
;
then
[
-e
/etc/altlinux-release
]
||
cp
-at
/etc
--
\
/usr/share/branding-data-current/release/altlinux-release
[
-e
/etc/os-release
]
||
cp
-at
/etc
--
\
/usr/share/branding-data-current/release/os-release
fi
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
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