ACC SHELL

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

YaST bytecode 1.4.0
AutoinstImageAutoinstImage.ycpProgressAutoinstConfigURLAutoinstSoftwareautoinstall/io.ycpFTPInstallationHTTP	StorageDevices
TFTP	GET_error	basename		
dirname		Get				GetURL			getScript	runScript'3WFMReadExecute3SCRReadWriteExecute3WFMReadExecute3SCRReadWriteExecute0autoinst3Progress3AutoinstConfigurltok3URLParse	Build	3AutoinstSoftwareimage	1autoinstall/io.ycp0
autoinst3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.mount
4&+					
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(X
4Y&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	path2AutoinstImage.ycp%ret$(	script_location4urltokscheme	host	filepath	$
&	script_location$	schemedefault$	host$	path&
/tmp/image.sh( 	
script_source4 ,!
SCR::Write.target.string
/tmp/image.sh	
script_source&"-$%'params	$(			mergestring			
script_params	 -)SCR::Execute.target.bash		
sformat		
7/bin/sh -x /tmp/image.sh %1 > /tmp/ayast_image.log 2>&1

ACC SHELL 2018