control: install2 support

rootfs scripts should hit installer some day; the problem
is with variables (dumping 'em wholesale looks dirty,
and proxying those sort of defeats the approach)
rather than with scripts.

Until then, transform the data from the single variable
into a file containing one facility per line for
installer-1.8.31+ to consume.
This commit is contained in:
Michael Shigorin 2016-02-10 09:27:11 +03:00
parent 37ce3f632c
commit 8ce8ce89cf

View File

@ -0,0 +1,7 @@
#!/bin/sh
# setup control(8) states for the installed system
# FIXME: drop this when rootfs scripts/data get installer support
[ -z "$GLOBAL_CONTROL" ] ||
echo "$GLOBAL_CONTROL" |
tr ' :' '\n ' > /usr/share/install2/control