ACC SHELL

Path : /usr/share/YaST2/modules/
File Upload :
Current File : //usr/share/YaST2/modules/AutoInstallRules.ybc

YaST bytecode 1.4.0AutoInstallRulesLAutoInstallRules.ycpArchStageInstallationAutoinstConfigXMLStorageKernelMode	Profile
LabelReportPopup
URLIPProductautoinstall/io.ycpFTPHTTPStorageDevicesTFTP	GET_error	basename		dirname		Get				GetURL			userrulesdontmergeIsDefaultdontmergeBackup		Behaviour
ATTRinstalled_product	 installed_product_version	!hostname	"hostaddress	#network	$domain	%arch	&karch	'product	(product_vendor	)board_vendor	*board	+memsize,disksize	-	totaldisk.hostid	/mac	0linux1others2xserver	3	haspcmcia	4NonLinuxPartitions5LinuxPartitions6	UserRules	7shell	8env9tomerge	:element2file	;XML_cleanup		<	StdErrLog	=getMAC	>	getHostid	?
ProbeRules@shellseg			AverifyrulesBSubVars		CReadDFiles	EGetRulesFMerge	GProcess	H
CreateDefaultI
CreateFile	JAutoInstallRulesKInit,!"#%.  0!!2""4##6$$8%%:&&<''?((B))E**H++J,,L--N..P//R00T11V22X33Z44_55a66d99j;;rin	out	<<}stderr	==>>??CCDDEEFFresult_profile	GGbresult_profile	HHIIfilename	JJKKS3UI	UserInputTimeoutUserInput
OpenDialogCloseDialogChangeWidget

QueryWidget

3WFMReadExecute3SCRReadWriteExecute3WFMReadExecute3SCRReadWriteExecute0autoinst3Archarchitecture	3Stageinitial3Installation	sourcedir	mountlog	boot	3AutoinstConfig	filepath	tmpDir	local_rules_location	local_rules_file	urltokscheme	host		directory		dontmerge	3XMLYCPToXMLFile
	XMLToYCPFile		XMLError	3StorageGetTargetMap	GetForeignPrimary	
IsRealDiskGetOtherLinuxPartitions3KernelGetPackages	3Modetest3ProfileReadXML	current	3LabelOKButton	ErrorMsg	3ReportError	3PopupError	3URLParse	Build	3IPToHex		3Productname	version	1autoinstall/io.ycp0
autoinst3FTPGet		3HTTPGet		easySSL3StorageDevicesFloppyReadyFloppyDevice	3TFTPGet			$%filePath	pathComponentsret	$			splitstring			/$	-size-%'filePath	pathComponentslast	ret	$)			splitstring			/$*	-size$+			substring		-	size		size	-,%4Scheme	Host	Path		Localfile	okrestoksfull_url	tmp_dir	mount_point	&9$:$;
$<	'=scheme'>host(?					regexpsub				
(.*)//(.*)\1/\24@&A					regexpsub				
(.*)//(.*)\1/\2'Cpath$D$F		WFM::Read
.local.tmpdir	$G+			
/tmp_mount,HWFM::Execute.local.mkdir(J||httphttps4K,L&M(Ncode4O&P-Q4T,U	
y2error	
Can't find URL: %1&W		
sformat		
CCannot find URL '%1' via protocol HTTP(S). Server returned code %2.autoinstcode-X([ftp4\&](^&&&&codecode,	SCR::Read.target.size4_&`-a4d,e	
y2error	
Can't find URL: %1&g		
sformat		
?Cannot find URL '%1' via protocol FTP. Server returned code %2.autoinstcode-h(kfile4lfile	$m		
sformat		
%1/%2(n	SCR::Read.target.size4ocpcmd	$p		
sformat		
cp %1 %2,q	
y2milestone	
Copy profile: %1,rSCR::Execute.target.bash4ucpcmd	&v+					
sformat		
Reading file on %1/%2 failed.
autoinst$w		
sformat		
cp %1 %2,x	
y2milestone	
Copy profile: %1,ySCR::Execute.target.bash(|	SCR::Read.target.size4}&~&4&+					
sformat		
Reading file on %1 failed.
autoinst,	
y2milestone	
-Trying to find file on installation media: %1(cd4cdrom	cdrom_device	already_mounted	am$		SCR::Read.etc.install_inf.Cdrom$+			/dev/$+			+			grep  /proc/mounts ;$SCR::Execute.target.bash_output(&&exit	size		stdout4cmd	am1,	
	y2warning	
.%1 is already mounted, trying to bind mount...$+			+			+			+			mount -v --bind `grep  /proc/mounts |cut -f 2 -d \ ` ;$SCR::Execute.target.bash_output(exit4&4,	
	y2warning	
can't bind mount %1 failing...&4(!WFM::Execute.local.mount4&+					
sformat		
Mounting %1 failed.autoinst,	
	y2warning	
Mount failed&4&(4cpcmd	$		
sformat		
+			+			cp /%1 %2,	
y2milestone	
Copy profile: %1,SCR::Execute.target.bash,WFM::Execute
.local.umount(	SCR::Read.target.size4&-&+					
sformat		
)Reading a file on CD failed. Path: %1/%2.autoinst&(nfs4copyCmd	(nfs4,	
y2milestone	
Starting portmap: %1SCR::Execute.target.bash
/sbin/portmap(&&!SCR::Execute
.target.mount+			+			:	-o nolock!SCR::Execute
.target.mount+			+			:-t nfs44,	
	y2warning	
Mount failed&		
sformat		
Mounting %1 failed.autoinst+			+			:-$+			+			+			+			+			/bin/cp / ,	
y2milestone	
Copy Command: %1(WFM::Execute.local.bash4&&4&		
sformat		
"Remote file %1 cannot be retrievedautoinst+			+			/,	
y2error	
!remote file %1 can't be retrieved+			+			/,WFM::Execute
.local.umount(cifs4copyCmd	(!SCR::Execute
.target.mount+			+			//-t cifs -o guest,ro4,	
	y2warning	
Mount failed&		
sformat		
Mounting %1 failed.autoinst+			+			//-$+			+			+			+			+			/bin/cp / ,	
y2milestone	
Copy Command: %1(WFM::Execute.local.bash4&&4&		
sformat		
"Remote file %1 cannot be retrievedautoinst+			+			/,	
y2error	
!remote file %1 can't be retrieved+			+			/,WFM::Execute
.local.umount(floppy4(4,WFM::Execute.local.mount(WFM::Execute.local.bash+			+			+			+			+			/bin/cp / 4,	
y2error	
file  %1 can't be retrieved+			+			/4&&,SCR::Execute.target.umount(||deviceusb4(4
deviceList	$	(4disks$	device	SCR::Read.probe.disk	SCR::Read
.probe.usb,
foreachm(&&usb	busUSBSCSI/
(haskeydev_name4idev	$ $ 	dev_name&			add			substring		 *& + & +				dev_name		
sformat		
%1 (	SCR::Read
.target.lstat 
&			add			substring		 ||	SCR::Read
.target.lstat 
 ,	
y2milestone	
devices to look on: %14)"	SCR::Read.target.dir+			/dev/4"l	,#	
y2milestone	
nested device found$$			splitstring			/&%+			+			/	&&		remove&'			mergestring			/,(	
y2milestone	
Host=%1 Path=%2&+,-		foreachHost	mounts	
mount_list	already_mounted
,.	
y2milestone	
looking for profile on %1$/		SCR::Read.target.string/proc/mounts$0			splitstring			
$1,2		foreachm	entries	$3 			splitstring			 (4 	+			/dev/44&5&6 	.7,:	
y2milestone	
 already mounted=%1 mountpoint=%2(;&&!!WFM::Execute.local.mount		
sformat		
/dev/%14=,>	
y2milestone	
"%1 is not mounted and mount failed		
sformat		
/dev/%1&?		
sformat		
"%1 is not mounted and mount failedautoinst		
sformat		
/dev/%1/@(CWFM::Execute.local.bash+			+			+			+			+			/bin/cp / 4D&F		
sformat		
File %1 cannot be foundautoinst+			,G	
y2milestone	
file %1 can't be found+			4J&K&L,M	
y2milestone	
found(O!,PWFM::Execute
.local.umount(Q.R(Vtftp4W(X4Y&Z&[4^&_		
sformat		
'Cannot find URL '%1' via protocol TFTP.autoinst+			+			:,`	
y2error	
file %1 can't be found4d&f		
sformat		
Unknown protocol %1.autoinst,g	
y2error	
Protocol not supported&h-j%qurl	target	toks&s	$t	-u	scheme	host	path2AutoInstallRules.ycp$!$"$#	$%many$,
$.$0 $2!$4"$6#$8$$:%$<&$?'$B($E)$H*$J+$L,	$N-$P.$R/$T0$V1$X2$Z30$_4	$a5	$d6
$g7$h8
$j9	$l:
%r;ycpin$s
,t	
y2debug	
*Writing clean XML file to  %1, YCP is (%2)-u
profile%}<,~
opt	decoratedVBoxVSpacing0.5HSpacing2HBoxHSpacing0.5LogViewidlog
dHSpacing0.5VSpacing0.2
PushButtonidokoptdefaultVSpacing0.5,idlogValue,,%=tmpmac	cleanmac	$(4&		SCR::Read.etc.install_inf.HWAddr$			deletechars			:-%>hex	$"-%?	biosbiosinfosmbiossysinfo	boardinfomemorymemoriesstorage	PhysicalTargetMap	7$	SCR::Read.probe.bios(size4,	
	y2warning	
Warning: BIOS list size is %1size$
$smbios	$
$
,foreachinf(	typesysinfo4&(	type	boardinfo4&(size4&'	productdefault&(	manufacturerdefault(size4&*	productdefault&)	manufacturerdefault'product''product_vendor('board*'board_vendor)&%&&kernel-default	'arch%'karch&$$	SCR::Read
.probe.memory&resourcephys_memrange&+/*'memsize+$$			filterk	v&-&,				maplistk	v
size_in_mb$/size_k&-+--devicesize,	
y2debug	
disksize: %1,&/='mac/(4
&"		SCR::Read.etc.install_inf.IP4&"192.168.1.1'hostaddress"&.>'hostid.&!		SCR::Read.etc.install_inf.Hostname'hostname!& $		SCR::Read.etc.install_inf.Domain'!domain$&"#		SCR::Read.etc.install_inf.Network'#network#&$3		SCR::Read.etc.install_inf.HasPCMCIA'%	haspcmcia3&&2		SCR::Read.etc.install_inf.XServer''xserver2&)4&*1size4,,	
y2milestone	
Other primaries: %14&.5&/0size5,1	
y2milestone	
Other linux parts: %15&3&4 '5installed_product'6installed_product_version ,8	
y2milestone	
Installing %1 %2 -:%I@matchvar	valop		matchtype	tmpshell	(Kand&L && (Mor&N || $P ( [,Q	
y2debug	
Match type: %1(R&&		*4S&U+			 "1" = "1" (Wexact4X&Y+					
sformat		
 "$%1" = "%2" ([greater4\&]+					
sformat		
 "$%1" -gt "%2" (_lower4`&a+					
sformat		
 "$%1" -lt "%2" (crange4drange	$e			splitstring				tostring	-,f	
y2debug	
	Range: %1&g+					
sformat		
" "$%1" -ge "%2" -a "$%1" -le "%3" 0	0	(iregex4j&k+					
sformat		
[ "$%1" =~ %2 ](n4o&p7+			7		
sformat		
	 %1 %2] )4s&t7+			] ) ,w	
y2debug	
var: %1, val: %2,x	
y2debug	
	shell: %17-y%Ascript	ret$		
sformat		
#if %1; then exit 0; else exit 1; fi7$SCR::Execute.target.bash_output8,	
y2milestone	
Bash return: %1 (%2) (%3)8-exit%Bfile	var	firstlast	,	
y2milestone	
file: %1$$		findfirstof		@$		
findlastof		@(&&4ffirstllast$+$(4&			substring		-,	
y2milestone	
var: %1(4val	new	$	$					regexpsub				(.*)@.*@(.*)		
sformat		
\1%1\2(-,	
y2milestone	
val: %1-%Crulelist	ismatchgo_ondialogOrderdialogIndex&6
	(64message	$3Parsing the rules file failed. XML parser reports:
autoinst,+			
,	
y2milestone	
	Rules: %16$6rules	(4,	
y2error	
Key 'rules' has wrong type&	$$,		foreachruleset	,	
y2debug	
Ruleset: %1(4,		foreachrule	ruledefmatch	op		matchtype	
easy_rules	,	
y2debug	
Rule: %1,	
y2debug	
Ruledef: %1$	match	undefined$	operatorand$	
match_typeexact$	hostnamehostaddressinstalled_product_versioninstalled_productdomainnetworkmackarchhostidarchboardboard_vendorproduct_vendorproduct(		contains4,@&'8	(||||||||custom1custom2custom3custom4custom54script	tmpdir	
scriptPath	out
script_result	$	scriptexit -1$	$		
sformat		
%1/%2+			rule_,	
y2milestone	
Writing rule script into %1,
SCR::Write.target.string$SCR::Execute.target.bash_output+			/bin/sh 
$	stdout,@&''8(linux4,@&'80(others4,@&'81(xserver4,@&'82(memsize4,@&'8+(	totaldisk4	,
@&'8-(	haspcmcia4,@&'83(disksize4disk	it	
,	
y2debug	
 creating rule check for disksize$			splitstring			 $$(74&+			7		
sformat		
 %1 ( and&&||4& +			7		
sformat		
 ( ,"		foreachdev	 ,var1	var2	$#!		
sformat		
disksize_size%1$$!		
sformat		
disksize_device%1(&exact4&&'+					
sformat		
" [ "$%1" = "%2" -a "$%3" = "%4" ] !	!	((greater4(&)+					
sformat		
% [ "$%1" -gt "%2"  -a "$%3" = "%4" ] !	!	(*lower4*&++					
sformat		
$ [ "$%1" -lt "%2" -a "$%3" = "%4" ] !	!	'.8! size'/8!	 device&0+(1size,42&3+			 || &6+			 ) &77,8	
y2debug	
	shell: %17&9(;result4<profile_name	$=	profile&>B(?haskeydialog'@:dialogelement(AA4B,C	
y2milestone	
Final Profile name: %1(Ematch_with_base4F&G9			add9(Jhaskey
dont_merge4J(K4K&L	&M		&O		union	
dont_merge	&P,Q	
y2milestone	
8user defined dont_merge for rules found. dontmerge is %1	&Scontinue4V&W&Y7&Z$a	,b	
y2milestone	
element2file=%1:,c		foreachrule	(d&&haskeydialog!containsdialog	dialog_nr&eadddialog	dialog_nr&gsort$i)j-size4jdialogNrdialog_term
element_nrtimeouttitle	conflictsCounter
$k$lVBox$m$n$oChoose XML snippets to merge$p
,q		foreachrule	(rhaskeydialog4rfile	&sdialogelement$t:	&u+(v		contains94v,wforeachcdialog	conflicts	'x+,~		foreachrule	(&&haskeydialogdialog	dialog_nr4file	onbutton&dialogelement&	dialogtitle$:	$		contains9$LeftCheckBoxidoptnotify	dialogquestion(haskeydialog
timeout&dialogtimeout&add&+(4,
opt	decoratedVBoxLabelVSpacingVSpacingHBoxHStretch
PushButtonidbackBack
PushButtonidokOkay(,idbackEnabled,foreachcn,idEnabled,idValue)4ret$(&&*&&(||||oktimeoutback4(back&-.4	conflicts(idValue4&9			add9:	tointeger	4file	$:	tointeger	&9			filterf	9$	,foreachr(dialogelement	tointeger4&dialog	conflicts	.,foreachelement(idValue'+('-,foreachev(4,idEnabled,idValue4,idEnabled,	
y2milestone	
tomerge is now = %19,	
y2milestone	
conflictsCounter is now = %1,&+,	
y2milestone	
7changing rules to merge to %1 because of user selection9-%D-9%Escheme	host	filepath		directory	valid	stop
,	
y2milestone	
Getting Rules: %19$	$	$	$	$	$,		foreachfile	9(!4dir		localfile	$(4,SCR::Execute
.target.mkdir+			+				/$+			+				/(!+			+			/4,	
y2error	
Error while fetching file:  %1+			+			/4(one4&&			add&9(size94,	
y2milestone	
No files from rules found-4-%Ftmpdir	okskiperrorbase_profile	$	$$$$+			/base_profile.xml,		foreachfile	9current_profile	,	
y2milestone	
Working on file: %1$+			+				/(!4 (!!;+			/base_profile.xml4"message	,#	
y2error	
Error reading XML file$$[The XML parser reported an error while parsing the autoyast profile. The error message is:
autoinst&%+			
,&&'&)(+!4,MergeCommand	
dontmerge_str	ixsltret$-6/usr/bin/xsltproc --novalid --param replace "'false'" $.$/,0		foreachdm		&1+					
sformat		
 --param dontmerge%1 "'%2'" &2+&4+			&6+			
--param with &7+			+			+			"''"  &8+			+			+				--output /result.xml&9+			( /usr/share/autoinstall/xslt/merge.xslt &:+			+			 ,<	
y2milestone	
Merge command: %1$=SCR::Execute.target.bash_output,>	
y2milestone	
Merge result: %1(?||exit	stderr4@,A	
y2error	
Merge Failed,B<	stderr&C,F;+			/result.xml+			/base_profile.xml4J,K	
y2error	
!Error while merging control files(O4P-Q!,TSCR::Execute.target.bash+			+			+			cp /base_profile.xml ,V	
y2milestone	
Ok=%1&W&X	-Y%bGoktmpdir	prefinal	
$e$f	$g+				/prefinal_autoinst.xml(h!F4i-j&m9	(q!4r,srError while parsing the control file.
Check the log files for more details or fix the
control file and try again.
autoinst-w,y	
y2milestone	
Checking classes...(zhaskeyclasses4{classesret,|	
y2milestone	
.User defined classes available, processing....$}classes	,~foreachclass(haskey
dont_merge4(&		&		union	
dont_merge	&,	
y2milestone	
8user defined dont_merge for class found. dontmerge is %1	&9			add9+			+			+			classes/	
class_namenone/	
configurationnone,	
y2milestone	
New files to process: %19&multiple$E(4&9			prepend9prefinal_autoinst.xml&F4,
User-defined classes could not be retrieved.  Make sure all classes 
are defined correctly and available for this system via the network
or locally. The system cannot be installed with the original control 
file without using classes.
autoinst&,SCR::Execute.target.bash+			+			+			cp  4,SCR::Execute.target.bash+			+			+			cp  ,	
y2milestone	

returns=%1-%H
tmp_hex_ip		&one$.&9			add9)	size	4&			substring		-	size	&9			add9&9			add9		toupper		/&9			add9		tolower		/&9			add9default,	
y2milestone	
Created default rules=%19-%I&9			add9,	
y2milestone	
Created default rules: %19-%J-%K(||
4,?-

ACC SHELL 2018