ACC SHELL

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

YaST bytecode 1.4.0AutoinstFileAutoinstFile.ycpAutoinstConfigSummaryautoinstall/io.ycpURLFTPInstallationHTTPStorageDevices	TFTP
	GET_error	basename		dirname		
Get				GetURL		modifiedSetModifiedGetModifiedFilesSummary	ImportExportWrite	#'-DsettingsLS3WFMReadExecute3SCRReadWriteExecute3WFMReadExecute3SCRReadWriteExecute0autoinst3
AutoinstConfigscripts_dir	logs_dir		files_dir	urltokscheme	host		directory	3Summary	CloseList		
NotConfigured		AddHeader			AddLine			OpenList		AddListItem			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	-,%4
Scheme	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||
http
https4K,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.size
4_&`
-a4d,e	
y2error	
Can't find URL: %1&g
		
sformat		
?Cannot find URL '%1' via protocol FTP. Server returned code %2.autoinstcode-h(k
file4lfile	$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.size
4}&~
&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.size
4&
-&
+			
		
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(||
device
usb4(
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(V
tftp4W(X


4Y&Z
&[4^&_
		
sformat		
'Cannot find URL '%1' via protocol TFTP.autoinst+			+			
:
,`	
y2error	
file %1 can't be found
4d&f
		
sformat		
Unknown protocol %1.autoinst
,g	
y2error	
Protocol not supported&h-j%qurl	target	toks&s
$t-u
	scheme	host	path
2AutoinstFile.ycp$%,	
y2milestone	
SetModified&%#-$$'	%-summary	$/
&0

Configured Files:autoinst(1size42&3

,4foreachfile&5

		file_path&7

4:&;

-=
%D&E
-F%L-M%SAutoInstallcountersuccess3UAutoInstall,V	
y2milestone	
Writing Files to the system(Wsize4X-Y$\
$]
,_foreachfilealternate_location	
alter_file	script	$a		
sformat		
%1/%2
$b		
sformat		
file_%1
(c-	size			file_pathdummy		
findlastof				file_path/4c,eSCR::Execute
.target.mkdir		file_path(f	
file_contents4ftpos,g	
y2milestone	
AutoInstall: Copying file %1		file_path$h			splitstring					file_path/$i-size,l
SCR::Write.target.string		file_path	
file_contents(n	
file_location4n(o		issubstring			
file_location	relurl://4ol	newloc	$p	
file_location&q			substring			$r(srelurl4stok,t	
y2milestone	
autoyast profile was relurl too&u		SCR::Read.etc.install_inf.ayrelurl$v,w	
y2milestone	
tok = %1&x+			+			+			+			+				scheme://	host/	path4y&z+			+			+			+			+			:///'|
file_location,}	
y2milestone	
changed relurl to %1 for file,	
y2milestone	
(trying to get file from %1 storing in %2	
file_location		file_path(!	
file_location		file_path4,	
y2error	
file could not be retrieved4,	
y2milestone	
file was retrieved(	file_permissions4,SCR::Execute.target.bash		
sformat		
chmod %1 %2	file_permissions		file_path(	
file_owner4,SCR::Execute.target.bash		
sformat		
chown %1 %2	
file_owner		file_path$file_script
(
4current_logdir	name_tok
scriptName	
scriptPath	scriptInterpreter	executionString	$$			splitstring					file_path/$(size4name	$	-size&+			script_$		
sformat		
%1/%2,	
y2milestone	
Writing (file)  script into %1,
SCR::Write.target.string	sourceecho Empty script!$	interpretershell$(shell4&		
sformat		
/bin/sh -x %1  2&> %2/%3.log,SCR::Execute.target.bash(perl4&		
sformat		
/usr/bin/perl %1  2&> %2/%3.log,SCR::Execute.target.bash(python4&		
sformat		
!/usr/bin/python %1  2&> %2/%3.log,SCR::Execute.target.bash4,	
y2error	
Unknown interpreter: %1,	
y2milestone	
Script Execution command: %1&
SCR::Execute.target.bash		
sformat		
cp %1 %2		file_path&
+
-


ACC SHELL 2018