ACC SHELL

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

YaST bytecode 1.4.0AutoinstSoftware;AutoinstSoftware.ycpProfileSummaryStageSpaceCalculationPackagesPopupReportKernel	AutoinstConfig
ProductControlStorageMode
Misc	Directoryautoinstall/io.ycpURLFTPInstallationHTTPStorageDevicesTFTP	GET_error	basename		dirname		Get				GetURL		AutoinstData	PackageAISoftwareimage	
image_arch	 patterns	!kernel	"	ft_module	#imaging$modified%inst	&
all_xpatterns	'
instsource	(isolinuxcfg	)SetModified*GetModified+Import,AutoinstSoftware-GetArchOfELF		.createImage	/
copyFiles4ISO	0	createISO1Export2AddModulePackages	3RemoveModulePackages	4Summary	5autoinstPackages	6Write7pmInit8addPostPackages	9
ReadHelper	:Read$&'  *!!-""2##5$$8%%:&&;''=((>))E**N++Ysettings,,..	targetdir	//!target	00O1122module_packages	33module_packages	44556677{88calcpost	99::C3UI	UserInput
OpenDialogCloseDialogQueryWidget

AskForExistingDirectory			3PkgDoRemove		SourceStartManagerSourceStartCache
TargetInit	
TargetLoadTargetFinishGetPackages	
FilterPackages	IsAvailable		DoProvide		PkgTaboo	PkgSolveResolvableInstall	
ResolvableSetSoftLock	
ResolvableProperties		
	ResolvableDependencies		
	3WFMReadCallFunction	Execute3SCRReadWriteExecute3WFMReadCallFunction	Execute3SCRReadWriteExecute0autoinst3Profilecurrent	Save	3Summary	CloseList		
NotConfigured		AddHeader			AddLine			OpenList		AddListItem			3Stageinitialcont3SpaceCalculationShowPartitionWarning3PackagesInitComputeSystemPackageList	3PopupError	YesNo	
ClearFeedbackShowFeedback		Message	3ReportError	Warning	3KernelComputePackages	3AutoinstConfigtmpDir	urltok3ProductControl
DisableModule		3StorageAddPackageList	3Modeautoinst3Misc
SysconfigRead		3	Directoryybindir	1autoinstall/io.ycp0
autoinst3URLParse	Build	3FTPGet		3
Installation	sourcedir	mountlog	boot	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/
(haskey dev_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	path2AutoinstSoftware.ycp3 AutoinstData
post_packages	
post_patterns	3"	PackageAI	toinstall	toremove	$$
$&
$'$* 	$-!$2"$5#$8$$:%	$;&	$='$>(%E)&G$%N*-P$%Y+notFound	packagesAvailable	patternsAvailable	allPatterns	
regexFound	&[&\ patterns	&]'	
instsource$_$g	available$h	$ipattern&j			filterm	(kuser_visible&l			add	name-muser_visible$p	'qpackages			filter	want_pack	packages	(r!		issubstring		/-s&t			deletechars			/,u		foreachpack	!,v	
y2milestone	
matching %1 against %2!(w		regexpmatch		!4w&x			add!,y	
y2milestone	
match-|'~packages	unionpackages	&	& 			filter	want_patt	 (!		issubstring		/-&			deletechars			/,		foreachpatt	!,	
y2milestone	
matching %1 against %2!(		regexpmatch		!4&			add!,	
y2milestone	
match-& 	union ,		foreachpack	packages	(&&!	4&+			+			
(	size	4,	
y2error	
packages not found: %1,
		
sformat		
BThese packages could not be found in the software repositories:
%1autoinst&packages	&!	kernel&
post-packages	&
post-patterns	&remove-packages	&image
(&&	image_location	
image_name&#-%,(&&	4,/,+software
-%-filename	bash_out$SCR::Execute.target.bash_output+			+			
/elf-arch (exit-unknown-			deletechars				stdoutunknown
%.	rootdir	
zypperCall	outputRedirect	
finalPopup
returnCodeaddOnExportaddOnspattern	
tarCommand	'$		SCR::Read.target.tmpdir$$ 2>&1 >> /tmp/ay_image.log$	size	'script_location	script_location)file:///usr/lib/YaST2/bin//fetch_image.sh'
script_params	
script_params+			+			+				image_location/	
image_nameimage.tar.gz,SCR::Execute.target.bashrm -f /tmp/ay_image.log,SCR::Execute
.target.mkdir+			/dev$SCR::Execute.target.bash		
sformat		
touch /%1/dev/null %1/dev/zero&SCR::Execute.target.bash		
sformat		
$mount -o bind /dev/zero /%1/dev/zero&SCR::Execute.target.bash		
sformat		
$mount -o bind /dev/null /%1/dev/null&		
sformat		
cZYPP_READONLY_HACK=1 zypper --root %1 --gpg-auto-import-keys --non-interactive ar %2 main-source %3',	
y2milestone	

running %1&SCR::Execute.target.bash(&&4,		
sformat		
Adding repo %1 failedautoinst'$	WFM::CallFunction	add-on_auto	Export$add_on_products	,foreachaddOn&		
sformat		
ZZYPP_READONLY_HACK=1 zypper --root %1 --gpg-auto-import-keys --non-interactive ar %2 %3 %4		media_url	product&SCR::Execute.target.bash(&&4,		
sformat		
Adding repo %1 failedautoinst	product&		
sformat		
rZYPP_READONLY_HACK=1 zypper --root %1 --gpg-auto-import-keys --non-interactive install --auto-agree-with-licenses $			mergestring			  ,$Creating Image - installing patterns,	
y2milestone	

installing %1&SCR::Execute.target.bash+			+			+			-t pattern ,(4,PImage creation failed while pattern installation. Please check /tmp/ay_image.logautoinst(size4package	$			mergestring			 ,$Creating Image - installing packagesautoinst&SCR::Execute.target.bash+			+			+			 ,(4,PImage creation failed while package installation. Please check /tmp/ay_image.logautoinst&-		
sformat		
%1/bin/bash,	
y2milestone	
Image architecture = %1(4&	/Store image to ...autoinst&
SCR::Execute.target.bash		
sformat		
&umount %1/dev/null %1/dev/zero %1/proc&SCR::Execute.target.bash		
sformat		

rm -rf %1/dev$		
sformat		
Ktar cfvz %4/%3.tar.gz --exclude="./proc*" --exclude="/%3.tar.gz" -C %1 . %2	
image_name,	
y2milestone	

running %1,		
sformat		
You can do changes to the image now in %1/
If you press the ok-button, the image will be compressed and can't be changed anymore.autoinst,Compressing Image ...&SCR::Execute.target.bash,(4,		
sformat		
@Image compressing failed in '%1'. Please check /tmp/ay_image.logautoinst(,Image created successfullyautoinst%!/retcopy	copyList	$"$##.sysconfig.autoinstall.COPY_FOR_ISOL/,/boot/,/boot/__ARCH__/,/boot/__ARCH__/loader/,/media.1/,/suse/setup/descr/$%			splitstring			,,'		foreachsource	((		issubstring		__ARCH__&)					regexpsub				(.*)__ARCH__(.*)		
sformat		
\1%1\2(*			substring		-	size	/4*files	
filesInDir	,,SCR::Execute
.target.mkdir+			+			/(-!+			+			+			'/directory.yast/tmp/directory.yast4-,.		
sformat		
tcan not get the directory.yast file at `%1`.
You can create that file with 'ls -F > directory.yast' if it's missing.autoinst+			+			'/&/.0$3!		SCR::Read.target.string/tmp/directory.yast$4!			splitstring			!
,5		foreachfile	"!,7	
y2milestone	
will get %1 from %2 to %3"+			+			'/(8&&	size	"			substring		"-	size	"/)9&&!+			+			+			'/"+			+			+			+			//"49(:!		
sformat		
can not read '%1'. Try again?autoinst+			+			+			'/"&;(=!.>4@(B!+			+			'/+			+			/4B,C		
sformat		
&can not read '%1'. ISO creation failedautoinst+			+			'/&D.E,J+			'
/driverupdate+			
/driverupdate,KSCR::Execute.target.bash		
sformat		
(cp /usr/lib/YaST2/bin/fetch_image.sh %1/-L%O0isodir	outputRedirect	
returnCodelines		targetdir	cmd	$Q/tmp/ay_iso/,RSCR::Execute.target.bash		
sformat		
	rm -rf %1,SSCR::Execute
.target.mkdir$T 2>&1 >> /tmp/ay_image.log$U,V.,XPreparing ISO Filestructure ...autoinst,Y/,Z']image_locationfile:///'^
script_params+			+			+				image_location/	
image_name.tar.gz'_script_locationfile:///fetch_image.sh,`		
sformat		
%1/autoinst.xml&c(		SCR::Read.target.string		
sformat		
%1/boot/%2/loader/isolinux.cfg$d			splitstring			(
&e				maplistl	(f		issubstring		 append &g+			 autoyast=file:///autoinst.xml-h&j(			mergestring			
,l
opt	decoratedVBoxHBoxVSpacing
MultiLineEditidisolinuxcfgboot config for the DVDautoinst(
PushButtonidcreate_imageoptdefaulthstretchOkautoinstLabel		
sformat		
You can do changes to the ISO now in %1, like adding a complete different AutoYaST XML file.
If you press the ok-button, the iso will be created.autoinst,v&w(	isolinuxcfgValue,x,y
SCR::Write.target.string		
sformat		
%1/boot/%2/loader/isolinux.cfg($}/Store ISO image to ...autoinst,~Creating ISO File ...autoinst$		
sformat		
vmkisofs -o %1/%2.iso -R -b boot/%3/loader/isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table %4	
image_name,	
y2milestone	
executing %1+			&SCR::Execute.target.bash,(4,		
sformat		
;ISO creation failed in '%1'. Please check /tmp/ay_image.log4,		
sformat		
ISO successfully created at %1autoinst+			+			/tmp/	
image_name.iso%1s	$
(!'kernel!( 	'patterns (	'packages(	'
post-packages(	'remove-packages'
instsource''image-%2&		toset	union'software1-%3&			filterp	!		contains'software1-%4summary		$&Selected Patternsautoinst(size 4&,		foreacha	 &&4&&Individually Selected Packagesautoinst&		
sformat		
%1size&Packages to Removeautoinst&		
sformat		
%1size(!4&Force Kernel Packageautoinst&		
sformat		
%1!-%5allpackages	$	&	union(	size	!4kernel_pkgs	$&	union4(!4
kernel_nongpl	&			add!$+			!-nongpl(&			add4
kernel_pkgs	,	
	y2warning	
&%1 not available, using kernel-default!$&
	union-%6okfailed	
autoinstPacks	computed_packages	pack	(#4( !run_kickoff,!kickoff,"rpmcopy-#$&,($)	(,softwareinstall_recommended4,,.		foreachp	pattern,/	namepattern,3		foreachp			toset (5!pattern46&7			add(;size4<,=	
y2error	
Error while setting pattern: %1			mergestring			,,>
		
sformat		
Could not set patterns: %1.autoinst			mergestring			,$A5,F	
y2milestone	
)Packages selected in autoinstall mode: %1(Hsize4I,J	
y2milestone	
"Installing individual packages: %1$N,O	
y2debug	
Computed list of packages: %1,Q		foreachpack	(R&&&&	size	!!		search		kernel-4R,S	
y2milestone	
taboo for kernel %1&T			add,\	
y2milestone	
Packages to be removed: %1(]size4^,_		foreachrp	,a,d$f(gsize4h,i	
y2milestone	
Installing storage packages: %1(n!4n,o
\The package resolver run failed. Please check your software section in the autoyast profile.autoinst,r
-t%{7,		SCR::Read.target.tmpdir,	
y2milestone	
SourceStartCache: %1-%8&	tosetunion-%9retall_patterns	patterns	visible_patterns	patternsFullDatatmproot	userpackages	removepackages	patternPackages		new_p	
patternPackagesTemp	runemergency_break
software	!$/,,,&%	installed$pattern&&pattern$	$	$filterpret$(&&
statusnone	installed!		contains	nameno name4&			add	nameno name&(user_visible&			add	nameno name-,$,SCR::Execute
.target.mkdir+			
/rootclone,+			
/rootclone,	
y2debug	
SourceStartCache: %1,$,$	$	$		,		foreachtmp_pattern	xpattern	found	req$			filterp	 &	 name$
	$,		foreachd	 dependencies	(&&	 res_kindpackage||	 dep_kindrequires	 dep_kind
recommends4&			add	 name&(&				add	&	$
$$*tmp	&&+$	&
		toset
,		foreachppackage	
,		foreachd	!package,		foreachdd	#!dependencies	(&&&&	#res_kindpackage||	#dep_kindrequires	#dep_kind
recommends!		contains	#name4&			add	#name&			add	#name&&
,	
y2milestone	
temp package list = %1&&$

(size4,		foreachp	%(!		contains&			add,		foreachp	(!		contains%&			add'
packages		sort			filterpkg	||!		regexpmatch			kernel-.*
kernel-uml'
patterns		sort'
remove-packages		toset-
%:-+9

ACC SHELL 2018