mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
integrate-distro.sh: Ongoing improvements
- Use kernel flavour desktop - Beautify reset_host_files() - Use host /etc/group and /etc/passwd Signed-off-by: Jan Lindemann <jan@jannet.de>
This commit is contained in:
parent
b275d5e7b0
commit
ceb3c54235
1 changed files with 13 additions and 3 deletions
|
|
@ -44,7 +44,7 @@ initrd_modules="
|
|||
hid-generic
|
||||
"
|
||||
|
||||
kernel_flavour=-default
|
||||
kernel_flavour=-desktop
|
||||
|
||||
case $suse_version in
|
||||
11.4)
|
||||
|
|
@ -702,8 +702,10 @@ use_host_files()
|
|||
|
||||
reset_host_files()
|
||||
{
|
||||
local f e h
|
||||
local f e h p
|
||||
for f in $host_files; do
|
||||
p=$root/$f.diff
|
||||
diff -u $f $root/$f > $p
|
||||
for e in $myname rpmnew; do
|
||||
h="$root/$f.$e"
|
||||
[ -e "$h" ] && {
|
||||
|
|
@ -712,6 +714,13 @@ reset_host_files()
|
|||
break
|
||||
}
|
||||
done
|
||||
if [ -s $p ]; then
|
||||
echo "+ $f and host file differ:"
|
||||
cat $p
|
||||
else
|
||||
echo "+ no difference between $f and host file"
|
||||
rm -f $p
|
||||
fi
|
||||
done
|
||||
host_files=""
|
||||
}
|
||||
|
|
@ -881,7 +890,8 @@ cmd_install()
|
|||
|
||||
setup_root_directory
|
||||
setup_bind_mounts
|
||||
use_host_files /etc/hosts /etc/resolv.conf /etc/sysconfig/security /etc/nsswitch.conf
|
||||
use_host_files /etc/hosts /etc/resolv.conf /etc/sysconfig/security /etc/nsswitch.conf \
|
||||
/etc/passwd /etc/group
|
||||
|
||||
mkdir -p -m 755 $root/etc
|
||||
for c in \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue