ACC SHELL

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

YaST bytecode 1.4.0
BootloaderqBootloader.ycpArch
BootCommonBootStorageInstallationInitrdKernelModeProgress	Stage
Storage	Directory	BootELILO
BootLILOBootGRUB
BootPOWERLILOProductFeaturesExportImportProposeReadResetWriteFlagOnetimeBoot	ReadOrProposeIfNeededgetDefaultSection	getKernelParam			setKernelParam			
getLoaderType	getProposedDefaultSection	
UpdateGfxMenuDelDuplicatedSections ResolveSymlinksInSections!createSELinuxDir"handleSELinuxPAM#enableSELinuxPAM$disableSELinuxPAM%repeating_write&proposed_cfg_changed'cached_proposal(cached_settings)old_vga	* bootloader/routines/switcher.ycp+BootZIPL,getFunctions	-blExport.blImport/blRead0blReset1	blPropose2blsection_types	3blSave4	blSummary	5blUpdate6blWrite7blWidgetMaps		8	blDialogs	
9blFlagOnetimeBoot	:bootloader/routines/popups.ycp;Encoding<Label=Misc>Popup?Report@StringANoLoaderAvailableBaskClone	CconfirmAbortPopupDresetSectsPopupEconfirmSectionDeletePopup	F
resetAllPopupGsetLocationErrorPopupHemptyPasswdErrorPopupIpasswdMissmatchPopupJdisplayDiskChangePopup	KdisplayFilesEditedPopupLaskLocationResetPopup	MsaveToFLoppyPopupNusedNameErrorPopupOwriteErrorPopupPdisplayGfxMenuChangePopupQconfirmOptionDeletePopupRerrorWithLogPopup		SdisplayNoSupportPopupTnoBootloaderPopupUfloppyWrittenPopup	VrestoreMBRPopup	W
test_abortX	testAbortYcheckUsedStorageZ
Bootloader[ResetEx\Summary	]UpdateConfiguration^Update		_	PreUpdate`WriteInstallationaFindAndSelectDefault	bremoveDummySectionscCheckClientForSLERTdCountSection	eSetWriteMode	fResolveSymlink			gparseListDefault			hcheckZiplDefault		i
setLoaderType	j
getRootDevice	k
setRootDevice	l
getBootDevice	m
setBootDevice	nRunDelayedUpdatesoupdateAppend		pCopyKernelInird6settingssection	5dsection	key	section	key	value	BBH  %%G&&N''S((T**_,,!*_
bootloader	*_--8*_..C*_settings*_//N*_rereadavoid_reading_device_map*_00Y*_init*_11b*_22l*_33}*_cleaninitflush*_44*_55*_66*_77*_88*_99*_section	*_::`LL:`reason	:`WWeZZ[[init\\-]]`^^viv	uv	__``[eesettings	ffsection	key	ii
bootloader	jjkkdevice	llmmdevice	nnppvx3WFMcall	ExecuteClientExists	3SCRReadWriteExecute3UI	UserInput
OpenDialogCloseDialogQueryWidget

SetFocus
Recode			3SCRReadWriteExecute0
bootloader3Archi386ppcs390ia64x86_643
BootCommon+ReadWriteglobals		sections	
loader_device	selected_location	
backup_mbrchangedinstalled_version	update_version	write_settingssave_allwas_proposedwas_readlocation_changedfiles_editedpartitioning_last_changeenable_selinux
getLoaderType	Summary	CreateLinuxSection		UpdateSerialConsole			DetectDisks
getLoaderName		
getAnyTypeAttrib	updateTimeoutPopupForFloppy	GetBootloaderDevice	InstallingToFloppygetKernelParamFromLine			setKernelParamToLine				"UpdateInstallationKernelParametersGetAdditionalFailsafeParams	UpdateGfxMenuContentsgetBootDisk	RunDelayedUpdatesExportImportResetProposeSaveUpdate
setLoaderType	
Section2Index	3BootStorageBootPartitionDevice	RootPartitionDevice	3Installationdestdir	3InitrdWritechangedExportImport	setSplash	3Kernel
GetCmdLine	3Modecommandlinenormalinstallationlive_installationupdateautoinstconfig3ProgresssetNew				NextStep	NextStageTitle	Finish3 Stageinitial3!StorageInitLibstorageGetTargetMap	GetTargetChangeTime3"	Directoryvardir	3$	BootELILOGetFunctions	3%BootLILOGetFunctions	3&BootGRUBGetFunctions	3'
BootPOWERLILOGetFunctions	CreateImageSection		3)ProductFeaturesGetBooleanFeature		$G%$N&$S'$T(
$[)1_ bootloader/routines/switcher.ycp3BootZIPLGetFunctions	%!,bl_functionsgf	*_("||-#
$$lilogrubeliloziplppc$+	(,4-*_,.	
	y2warning	
*No bootloader-specific functions specified-/
-1!%8-	functionstoEval*_$9,$:export-;!%C.	functionstoEval*_$D,$Eimport-F!%N/	functionstoEval*_$O,$Pread-Q!%Y0	functionstoEval*_$Z,$[reset,\!%b1	functionstoEval*_$c,$dpropose,e!%l2	functionsfallback	toEval	*_$n,%o*_-p	image$r	
section_types-s!%}3	functionstoEval*_$~,$save-!%4	functionstoEval	*_$,$	summary-!%5	functionstoEval*_$,$update,!%6	functionstoEval*_$,$write-!%7	functionstoEval		*_$,$		widgets(-!-
%8	functionstoEval	
*_$,$	
dialogs(-!-
%9	functionstoEval	*_$,$	flagonetimeboot(-!-2Bootloader.ycp1`bootloader/routines/popups.ycp0
bootloader3Encodingconsole	3LabelNoButton	OKButton	3Miscboot_msg	3PopupYesNo	Message	
TimedOKCancel	3ReportError	3String
FirstChunk			%#A:`,%CThis function is not available if the boot
loader is not specified.
bootloader%.Bname	:`:`-0		
sformat		
IClone the selected section '%1' instead
of creating a new empty section?

bootloader%8C:`-:UReally leave the boot loader configuration without saving?
All changes will be lost.

bootloader%CD:`-EcReally reset your settings for sections?
All your changes made in section management will be lost.

bootloader%OEtitle	:`:`-Q		
sformat		
Really delete section %1?
bootloader%XF:`-Z?Really reset all
your settings? All your changes will be lost.

bootloader%bG:`,dSet the boot loader location.
bootloader%jH:`,lThe password must not be empty.
bootloader%rI:`,tC'Password' and 'Retype password'
do not match. Retype the password.
bootloader%|J	sect_name	:`:`,~		
sformat		
;The disk settings have changed.
Check section %1 settings.

bootloader%K:`,xThe disk settings have changed and you edited boot loader
configuration files manually. Check the boot loader settings.

bootloader%L:`-		
sformat		
$%1Set default boot loader location?

bootloader%Mretvalformatfs
itemscontentsretdev	:`$$$no$itemidnoDo Not Create a File System
bootloaderitemidext2Create an ext2 File System
bootloader(	SCR::Read.target.size/sbin/mkfs.msdos&additemidfatCreate a FAT File System
bootloader$VBoxLabelhThe boot loader boot sector will be written
to a floppy disk. Insert a floppy disk
and confirm with OK.

bootloaderVSpacingLeftCheckBoxidformat&Low Level Format
bootloaderVSpacingLeftComboBoxidfs&Create File System
bootloaderVSpacing
PushButtonidok,$)ok4:`&(ok4:`&idformatValue&
idfsValue,$(4	tmpretval:`$,	
y2milestone	
Low level formating floppy)4:`&SCR::Execute.target.bash		
sformat		
/usr/bin/fdformat %1(.(!#Low level format failed. Try again?
bootloader.&&&(ext24	tmpretval:`,	
y2milestone	
Creating ext2 on floppy$SCR::Execute.target.bash		
sformat		
/sbin/mkfs.ext2 %1(!,Creating file system failed.
bootloader&&&(fat4	tmpretval:`,	
y2milestone	
Creating msdosfs on floppy$SCR::Execute.target.bash		
sformat		
/sbin/mkfs.msdos %1(!,Creating file system failed.
bootloader&&&-%N:`,8The name selected is already used.
Use a different one.

bootloader%O:`-TAn error occurred during boot loader
installation. Retry boot loader configuration?

bootloader%P:`,
<The disk settings have changed.
Check the gfxmenu settings.

bootloader%Q:`-"Really delete the selected option?
bootloader%Rheader	log	:`textr:`(& "Unable to install the boot loader.
bootloader$!RichTextopt	plainText,"
opt	decoratedVBoxHSpacingKHeadingHBoxVSpacing
PushButtonidok_helpoptdefault,.idok_help$/,0%6S:`,82Sorry, there are currently
no options to set here.
bootloader%?T:`,A"Unable to install the boot loader.
bootloader%HU
bootloader	:`confirm_boot_msg	msg	:`$I$L		
sformat		
7The %1 boot sector has been written to the floppy disk.
bootloader&N+			+			
DLeave the floppy disk in the drive. The system will now be rebooted.
bootloader(R	size	4S:`&T+			+			

&V,X
%`Vdevice	:`statctimecommand	outc_time	msg	dialogbutton
:`$a	SCR::Read.target.stat/boot/backup_mbr$bctime$c		
sformat		
,date --date='1970-01-01 00:00:00 %1 seconds'$fSCR::Execute.target.bash_output$g	stdout&h
&i	UTF-8$m		
sformat		
Warning!

Current MBR of %1 will now be rewritten with MBR
saved at %2.

Only the booting code in the MBR will be rewritten.
The partition table remains unchanged.

Continue?

bootloader$xHBoxHSpacingVBoxVSpacing0.2LabelHBox
PushButtonidyes
&Yes, Rewrite
bootloaderHStretch
PushButtonidnooptdefaultVSpacing0.2HSpacing,
opt	decorated	warncolor$+:`&
||yesno,-yes2Bootloader.ycp$eW%kX(lW-m-n!W%wY(y&&!-z-|%Z-%outloader_type	,$loader_typeinitrd	specific-write_settings$	loader_type(!grub4'
loader_device'loader_location,	
y2milestone	
Exporting settings: %1-%loader_type	ret,	
y2milestone	
Importing settings: %1,&&&&(loader_type'loader_type$	loader_type,,(!grub4&	
loader_device&	loader_locationcustom(||||||lilogrub4&(initrd
,	initrd
$.specific
&write_settings
-%stages	titles	ret,	
y2milestone	
Reading configuration$Check boot loader
bootloaderRead partitioning
bootloaderLoad boot loader settings
bootloader$Checking boot loader...
bootloaderReading partitioning...
bootloaderLoading boot loader settings...
bootloader,&Initializing Boot Loader Configuration
bootloader ,(X-,(!Y-,,,(X-$/&&)vgamode,(X-,	
y2debug	
Read settings: %1-%[
(-,	
y2milestone	
Reseting configuration&&&&&	&&
,
0%-[%
,	
y2milestone	
Proposing configuration,	
y2milestone	
unfiltered target map: %1,,1& &!&"&#&$,%	
y2milestone	
Proposed settings: %1%-\ret	device	main_section	sectnumfiltered_cmdline	
$.	$3(4/dev/nfs45&7			addBThe boot partition is of type NFS. Bootloader cannot be installed.
bootloader,8	
y2milestone	
VBootloader::Summary() -> Boot partition is nfs type, bootloader will not be installed.-9&>4$@(B-C(Enone-F$H(J-K(M	__changed-N$P			filterchars			
>abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890(S	size	4T&U			add		
sformat		
Added Kernel Parameters: %1
bootloader
-Z%`]mlob	mod_list	,b5$e		SCR::Read(.sysconfig.kernel.MODULES_LOADED_ON_BOOT$g			splitstring			 &h			filters	&&&&&&cdromide-cdide-scsi&k			mergestring			 ,l
SCR::Write(.sysconfig.kernel.MODULES_LOADED_ON_BOOT,m
SCR::Write.sysconfig.kernel%v^&w&x-y%_,	
y2milestone	
#Running bootloader pre-update stuff%retstages	titles	params_to_save	new_vga	lt	device	reinit($(4&&&,!%(%&,(save_all&(4&&&	,	
y2milestone	
 Writing bootloader configuration$
Create initrd
bootloader$Save boot loader configuration files
bootloaderInstall boot loader
bootloader$Creating initrd...
bootloader)Saving boot loader configuration files...
bootloaderInstalling boot loader...
bootloader(4, Saving Boot Loader Configuration
bootloader ,4,	$
$vgamode(&&&&&&)falseask4,	(
'vgamode(||
4out$SCR::Execute.target.bash_output+			7test -f /sbin/devmap_mknod.sh && /sbin/devmap_mknod.sh;.test -f /sbin/vgscan && /sbin/vgscan --mknodes(exit4,	
y2error	
"Failed to initialize device mapper,	
y2milestone	
/Device mapper and LVM initialization output: %1(&&||	!!forbid_save_initrd4vga	$vgamode(&&&&falseask4,	(
'vgamode&	&(!,	
y2error	
$Error occurred while creating initrd(&(!||initrd_changed_externally4,	
y2milestone	
.No bootloader cfg. file saving needed, exiting(,4(!%,,	,	
y2milestone	
Saving configuration files$,
SCR::Write!.sysconfig.bootloader.LOADER_TYPE,
SCR::Write.sysconfig.bootloader'additional_failsafe_params'installation_kernel_params
(	
4
,
SCR::Write.target.ycp/var/lib/YaST2/bootloader.ycp(none4-$(/dev/nfs4,	
y2milestone	
TBootloader::Write() -> Boot partition is nfs type, bootloader will not be installed.-,"$%!||,&	
y2milestone	
1Reinitialize bootloader library before saving: %1&(&&3(*!,+	
y2error	
0Error before configuration files saving finished(-,.40(1!%,2,3	,7	
y2milestone	
Calling bootloader executable&8&&6,:!,;"(<!4=,>	
y2error	
Installing bootloader failed(?O4@res&A%$B		WFM::call	bootloader_proposal	AskUser
has_next(Dworkflow_sequencenext4E-F4K(L4M,Nsummary-S%[`retparams_to_save	new_vga	device	reinit,]	
y2milestone	
4Writing bootloader configuration during installation$^(`!4a&d/,f4g,j (lsave_all&m(n4o&p&q&r	$u
$wvgamode(x&&&&)false4y,z	({
'|vgamode(&&||	!!forbid_save_initrd4vga	$vgamode(&&false4,	(
'vgamode&	&(!,	
y2error	
$Error occurred while creating initrd'additional_failsafe_params'installation_kernel_params
(
4,
SCR::Write.target.ycp/var/lib/YaST2/bootloader.ycp(none4-$(/dev/nfs4,	
y2milestone	
TBootloader::Write() -> Boot partition is nfs type, bootloader will not be installed.-,$!||,	
y2milestone	
1Reinitialize bootloader library before saving: %1&&&3(!,	
y2error	
0Error before configuration files saving finished,	
y2milestone	
Calling bootloader executable&&&6,!,"(!4,	
y2error	
Installing bootloader failed(O4res&%$		WFM::call	bootloader_proposal	AskUser
has_next(workflow_sequencenext-4(,summary-%adefault_sec	ret
set_candidatedefault_name	default_candidate	$$$default	$,		foreachsection	(name4,	
y2milestone	
Default section was found.&.4(&&&&	root	root	typeimage	
original_namelinux4&	name,	
y2milestone	
$Candidate for default section is: %1&(!4(&&4,	
y2milestone	
%Default section will be update to: %1'default&4,	
y2error	
Default section was not found-%	b&			filtersection	(
||	
original_namelinux	
original_namefailsafe4(&&		search			imagedummy_image		search			initrddummy_initrd4,	
y2milestone	
Removed dummy boot section: %1---%"c($	WFM::ClientExists	kernel_bl_proposal-%-'%1dfind_section	num_sections,3	
y2milestone	
Finding same boot sections$4,5		foreachsection	(7&&rootroot
original_name
original_name4:&;+,>	
y2milestone	
'Number of similar section is %2 with %1-?%H
linux_default	linux_failsafe		linux_xen	num_linux_defaultnum_linux_failsafe
num_linux_xen(Kc4L,Mb-N,P	
y2milestone	
!Deleting duplicated boot sections$R
$S
$T
(U4V&Wlinux4X&Ylinux&Zfailsafe&[xen,^	
y2milestone	
&Proposed section for linux_default: %1,_	
y2milestone	
'Proposed section for linux_failsafe: %1,`	
y2milestone	
"Proposed section for linux_xen: %1,b	
y2milestone	
!Boot sections BEFORE deleting: %1$ed$gd$jd&l			filtersection	(n||||&&||namename	descriptionname&&||namename	descriptionname&&||namename	descriptionname4w(x||||rootrootrootrootrootroot4{(|	
original_namefailsafe&}-(	
original_namelinux&-(	
original_namexen&-,	
y2milestone	
deleted boot section: %1-4-4--, ,a,	
y2milestone	
 Boot sections AFTER deleting: %1%e,	
y2milestone	
Setting mode for writing: %1,		foreachk	v'%freadlink_cmd	outnewval	$+			/usr/bin/readlink -n -m $
$&WFM::Execute.local.bash_output+				(&&exit	stdout4&			substring			stdout	size	,	
y2milestone	
5section %1: converting old %2 parameter from %3 to %4	name	'4,	
y2error	
(section %1: failed to remap %2 parameter	name-% ,	
y2milestone	
sections before remapping: %1&				maplists	(||!		contains	linuxxenfailsafe	
original_name!		contains	imagexen	type4,	
y2milestone	
Lsection %1: not linux, xen or failsafe, skipping kernel and initrd remapping	name-(haskeyimage4(!		regexpmatch			image^(hd.*)4&fimage4,	
y2milestone	
Dsection %1: skipping remapping kernel symlink on other partition: %2	name	image(haskeyinitrd4(!		regexpmatch			initrd^(hd.*)4&finitrd4,	
y2milestone	
Dsection %1: skipping remapping initrd symlink on other partition: %2	name	initrd-,	
y2milestone	
sections after remapping: %1%gnames	position	ret	$,	
y2milestone	
Esection names (string) list: %1 and default name position in list: %2(||-(		search		,4	tmp_names	
list_names	$			deletechars			 $			splitstring			,&-	tointeger	4&-
%hdef	def_section_name	$(zipl4,		foreachsection	(	name4( 	typemenu4!def_position	$""	default&#g	list"4%.&,-	
y2milestone	
name of default section: %1-.%5default_name	,6$7hdefault	-8%Bdefaultv	first_image	
default_image		,C$D$E$F,G		foreachs	title	$H	name(Iimage4J(K&L(M&N(P&&	
original_namelinux&Q(S-T(U-V(W-X-Y%dparamssectnumindexline	
,e(fDEFAULT&g(h
LINUX_DEFAULT&i(j-k$l
kernel_params
$m$n,o		foreachs	&p+(q	name&r(t-u$v(w		contains	rootvgamode-x	false4z&{	append-|%sectnumindexslabel	ret(&&&&!vga||4,	
	y2warning	
>Kernel of this architecture does not support the vga parameter-,(DEFAULT&(
LINUX_DEFAULT&(-$$,		foreachs	&+(	name&(-$(&&||vgaroottrue-(		contains	rootvga4(false4(vga'vgamode''	__changed4(vga'			remove
	vgamode'			remove
	4line	$	append&'append'	__changed&$-%-%i,%j,-%k,&%l,-%m,&%n,-%-9%(!||4,	
y2milestone	
-Stage::initial (): %1, update: %2, config: %3
(4, 	
y2milestone	
'Not reading settings in Mode::config ()&!&"($&&4&,'	
y2milestone	
;Reproposing new configuration - IPF, EFI layout has changed,((*&&
!4+,,4/
progress_orig$0,1,2(344,5],6 &7&8%Bret(C&&lilogrub-D$F(G!-H(Ililo4J
bl_command	command_ret$N2/sbin/lilo >> /var/log/YaST2/y2log_bootloader 2>&1$OSCR::Execute.target.bash(P!4Q,R	
y2error	
(Execution of installation command failed-S-V%`osection	ret	$b(c&&	append	console4dupdated_append	$e	append	console(f4g'happend-k%vpcmd	out
linux_default	default_section	name	,x	
y2milestone	
,CopyKernelInird: start copy kernel and inird(z4{,|	
y2milestone	
-Running live_installation without using kexec-}(globalskexec_reboot4,	
y2milestone	
5Option kexec_reboot is false. kexec will not be used.-(||||4,	
y2milestone	
(Skip using of kexec on this architecture-$		
sformat		
hwinfo --bios |grep Product,	
y2milestone	
6Checking if installation run on VirtualBox command: %1$WFM::Execute.local.bash_output(		search			stdout
VirtualBox4,	
y2milestone	
6Installation run on VirtualBox, skip kexec loading: %1-$linux,	
y2milestone	
linux_default: %1$
$,		foreachsection	(&&&&		search			tostring		namerootroot	
original_namefailsafe4,	
y2milestone	
default section: %1&,WFM::Execute.local.mkdir/var/lib/YaST2&&o&		
sformat		
/bin/cp %1%2 %1%3 %4	tostring		image	tostring		initrd,	
y2milestone	
Command for copy: %1&WFM::Execute.local.bash_output(exit4,	
y2error	
)Copy kernel and initrd failed, output: %1-(	root4,	
y2milestone	
'root is not defined in default section.-(	vgamode4,	
y2milestone	
*vgamode is not defined in default section.-&		
sformat		
+echo "root=%1 %2 vga=%3" > %4/kernel_params	tostring		root	tostring		append	tostring		vgamode,	
y2milestone	
$Command for flushing kernel args: %1&WFM::Execute.local.bash_output(exit4,	
y2error	
)Flushing kernel params failed, output: %1--%!	path_file	cmd	$/selinux$ls -d /selinux  2>/dev/null(4(||4out$SCR::Execute.target.bash_output,	
y2milestone	
%runnning command: "%1" and return: %2(	stdout	/selinux
,SCR::Execute
.target.mkdir,	
y2milestone	
 Directory /selinux already exist4,	
y2milestone	
.Skip creating /selinux directory -> wrong mode4,	
y2milestone	
 Skip creating /selinux directory%",	
y2milestone	
handleSELinuxPAM called(||4(4,	
y2milestone	
call enableSELinuxPAM,#4,	
y2milestone	
call disableSELinuxPAM,$4
,	
y2milestone	
7Skip changing SELinux/AppArmor PAM config -> wrong mode%#
cmd_enable_se	cmd_disable_aa	out$$pam-config -a --selinux  2>/dev/null$$pam-config -d --apparmor 2>/dev/null$SCR::Execute.target.bash,	
y2debug	
1result of disabling the AppArmor PAM module is %1&SCR::Execute.target.bash,	
y2debug	
/result of enabling the SELinux PAM module is %1%%$cmd_disable_se	
cmd_enable_aa	out$'$pam-config -d --selinux  2>/dev/null$($pam-config -a --apparmor 2>/dev/null$*SCR::Execute.target.bash,+	
y2debug	
0result of disabling the SELinux PAM module is %1&-SCR::Execute.target.bash,.	
y2debug	
0result of enabling the AppArmor PAM module is %1

ACC SHELL 2018