[Libosinfo] [osinfo-db] rhel: Add support to registering to the subscription-manager
Debarshi Ray
rishi.is at lostca.se
Mon Jan 16 16:28:52 UTC 2017
Hey,
On Thu, Jan 12, 2017 at 12:26:31AM +0100, Fabiano Fid??ncio wrote:
> diff --git a/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in b/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in
> index 1b917ee..946f84f 100644
> --- a/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in
> +++ b/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in
> @@ -16,6 +16,8 @@
> <param name="avatar-disk" policy="optional"/>
> <param name="target-disk" policy="optional"/>
> <param name="script-disk" policy="required"/>
> + <param name="reg-login" policy="optional"/>
> + <param name="reg-password" policy="optional"/>
> </config>
> <injection-method>cdrom</injection-method>
> <injection-method>disk</injection-method>
> @@ -152,6 +154,10 @@ AutomaticLogin=<xsl:value-of select="config/user-login"/>
> [debug]
> " > /etc/gdm/custom.conf
>
> +if [ -n <xsl:value-of select="config/reg-login"/> -a -n <xsl:value-of select="config/reg-password"/> ]; then
We need to enclose the strings in quotes because [ -n -a -n ] will
evaluate to TRUE. Try these:
$ if [ -n ]; then echo foo; fi
foo
$ if [ -n "" ]; then echo foo; fi
$
Cheers,
Rishi
More information about the Libosinfo
mailing list