Interactive option checked BEFORE scripts?
I'm using the modified.xml method of dynamic autoinstall control files. One of the things I wanted dynamic was the interactive or not choice, controlled by: <mode> <confirm config:type="boolean">false</confirm> If this was set to true, it should be interactive. I have this being set in modified.xml, however it does not take effect. Is this option checked BEFORE the pre-scripts run? -- Jesse Keating RHCE Pogo Linux -- Linux Systems Engineer tel: (888) 828-7646 ex: 436
Jesse Keating wrote:
I'm using the modified.xml method of dynamic autoinstall control files. One of the things I wanted dynamic was the interactive or not choice, controlled by:
<mode> <confirm config:type="boolean">false</confirm>
If this was set to true, it should be interactive. I have this being set in modified.xml, however it does not take effect. Is this option checked BEFORE the pre-scripts run?
True. Anas
Back in October, Anas confirmed (no pun intended) that the 'confirm' setting can't be changed by changing the contents of /tmp/profile/modified.xml:
Jesse Keating wrote:
I'm using the modified.xml method of dynamic autoinstall control files. One of the things I wanted dynamic was the interactive or not choice, controlled by:
<mode> <confirm config:type="boolean">false</confirm>
If this was set to true, it should be interactive. I have this being set in modified.xml, however it does not take effect. Is this option checked BEFORE the pre-scripts run?
True.
Anas
I, like Jesse, wanted to be able to have this setting changeable at install time without having to change the profile. I've been using this patch to do so: ====================================================================================== --- /SLES9/boot/root/usr/share/YaST2/clients/inst_proposal.ycp 1969-12-31 16:00:00.000000000 -0800 +++ /usr/share/YaST2/clients/inst_proposal.ycp 2005-02-07 11:37:48.000000000 -0800 @@ -47,7 +47,15 @@ // skip if not interactive mode. if (!AutoinstConfig::Confirm && Mode::autoinst) { - return `auto; + string tmp = (string)SCR::Read (.target.string, "/proc/cmdline"); + if (tmp != nil && contains (splitstring (tmp, " \n"), "y2confirm")) + { + AutoinstConfig::Confirm = true; + } + else + { + return `auto; + } } /** ====================================================================================== There might be a better way or place to implement this, but this works for me to simply add 'y2confirm' to the boot options and get 'confirm' set to true (I use a profile with it set to 'false'). Can this functionality be added to a future release?
participants (3)
-
Anas Nashif
-
Jesse Keating
-
Joseph V Moss