system/xen: Add logic for sysconfig *enhanced* systems.

Signed-off-by: Mario Preksavec <mario@slackware.hr>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Mario Preksavec 2022-05-03 23:31:43 +02:00 committed by Willy Sudiarto Raharjo
parent fc8c8b05ea
commit d2e5cb7cd0
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 4 additions and 1 deletions

View File

@ -31,3 +31,6 @@ find etc/default -type f -name 'xen*.new' \
find etc/xen -type f -name '*.new' \
| while read new ; do config $new ; done
[ -d etc/sysconfig ] && find etc/sysconfig -type f -name 'xen*.new' \
| while read new ; do config $new ; done

View File

@ -239,7 +239,7 @@ find $PKG/boot/ -type l -a -name "xen-*" -exec rm -f {} \; 2>/dev/null || true
rmdir $PKG/etc/rc.d/init.d/
# Append .new to config files
for i in $PKG/etc/{default/*,xen/*.conf} ; do mv $i $i.new ; done
for i in $PKG/etc/{default/*,xen/*.conf,sysconfig/*} ; do [ -f $i ] && mv $i $i.new ; done
# Remove some executable flags
chmod -x $PKG/usr/libexec/xen/boot/*.gz 2>/dev/null || true