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
Ximper Linux
mkimage-profiles
Commits
f35351d8
You need to sign in or sign up before continuing.
Commit
f35351d8
authored
Nov 22, 2018
by
Alexey Shabalin
Committed by
Michael Shigorin
Dec 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init: avoid add root dev to fstab for vm image
This was erroneously added to overly broad class of images.
parent
90ab85ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
90-systemd
features.in/init/rootfs/image-scripts.d/90-systemd
+0
-4
91-systemd
features.in/init/stage2/image-scripts.d/91-systemd
+16
-0
No files found.
features.in/init/rootfs/image-scripts.d/90-systemd
View file @
f35351d8
...
@@ -19,7 +19,3 @@ sub /etc/initrd.mk 'MODULES_PRELOAD += autofs4'
...
@@ -19,7 +19,3 @@ sub /etc/initrd.mk 'MODULES_PRELOAD += autofs4'
# don't allow systemd to set LANG (see also #27408)
# don't allow systemd to set LANG (see also #27408)
sub /etc/locale.conf
'LANG='
sub /etc/locale.conf
'LANG='
# aufs2 root is rw in reality; but don't bother if there's a record already
grep
-q
'[[:space:]]/[[:space:]]'
/etc/fstab
||
sub /etc/fstab
'/dev/root / auto defaults 0 0'
features.in/init/stage2/image-scripts.d/91-systemd
0 → 100755
View file @
f35351d8
#!/bin/sh
# the part below relates to systemd as init specifically
rpm
-q
systemd-sysvinit
||
exit
0
sub
()
{
local
file
=
"
$1
"
shift
for
i
in
"
$@
"
;
do
grep
-q
"^
$i
"
"
$file
"
||
echo
"
$i
"
>>
"
$file
"
done
}
# aufs2 root is rw in reality; but don't bother if there's a record already
grep
-q
'[[:space:]]/[[:space:]]'
/etc/fstab
||
sub /etc/fstab
'/dev/root / auto defaults 0 0'
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