a ”ˆ«hscã@s„ddlmZddlTddlZddlmZddlmZddlm Z ddl Z ddl Z ddl Z ddl mZej ¡ZGdd „d ejƒZdS) é)Úbase)Ú*éN)Ú exceptions)Úcommands)Úsleepcs¨eZdZdZ‡fdd„Zdd„Zdd„Zedd „ƒZd d „Z d d „Z dd„Z ggfdd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd„Zdd„Zejfd d!„Zd"d#„Zd$d%„Zd&d'„Zd(d)„Zd*d+„Zd,d-„Zd.d/„Zd0d1„Zd2d3„Zd4d5„Z d6d7„Z!d8d9„Z"d:d;„Z#dƒd?d@„ƒZ&e%dAƒdBdC„ƒZ'e%dDƒdEdF„ƒZ(e%dGdHdIdJdKdL„ƒZ)e%dMdHdIdJdNdO„ƒZ*e%dPdHdIdJdQdR„ƒZ+e%dSdHdIdJdTdU„ƒZ,dVdW„Z-‡Z.S)XÚBootloaderPlugina. Adds options to the kernel command line. This plug-in supports the GRUB 2 boot loader and the Boot Loader Specification (BLS). NOTE: *TuneD* will not remove or replace kernel command line parameters added via other methods like *grubby*. *TuneD* will manage the kernel command line parameters added via *TuneD*. Please refer to your platform bootloader documentation about how to identify and manage kernel command line parameters set outside of *TuneD*. Customized non-standard location of the GRUB 2 configuration file can be specified by the [option]`grub2_cfg_file` option. The kernel options are added to the current GRUB configuration and its templates. Reboot the system for the kernel option to take effect. Switching to another profile or manually stopping the `tuned` service removes the additional options. If you shut down or reboot the system, the kernel options persist in the [filename]`grub.cfg` file and grub environment files. The kernel options can be specified by the following syntax: [subs="quotes"] ---- cmdline__suffix__=__arg1__ __arg2__ ... __argN__ ---- Or with an alternative, but equivalent syntax: [subs="quotes"] ---- cmdline__suffix__=+__arg1__ __arg2__ ... __argN__ ---- Where __suffix__ can be arbitrary (even empty) alphanumeric string which should be unique across all loaded profiles. It is recommended to use the profile name as the __suffix__ (for example, [option]`cmdline_my_profile`). If there are multiple [option]`cmdline` options with the same suffix, during the profile load/merge the value which was assigned previously will be used. This is the same behavior as any other plug-in options. The final kernel command line is constructed by concatenating all the resulting [option]`cmdline` options. It is also possible to remove kernel options by the following syntax: [subs="quotes"] ---- cmdline__suffix__=-__arg1__ __arg2__ ... __argN__ ---- Such kernel options will not be concatenated and thus removed during the final kernel command line construction. .Modifying the kernel command line ==== For example, to add the [option]`quiet` kernel option to a *TuneD* profile, include the following lines in the [filename]`tuned.conf` file: ---- [bootloader] cmdline_my_profile=+quiet ---- An example of a custom profile `my_profile` that adds the [option]`isolcpus=2` option to the kernel command line: ---- [bootloader] cmdline_my_profile=isolcpus=2 ---- An example of a custom profile `my_profile` that removes the [option]`rhgb quiet` options from the kernel command line (if previously added by *TuneD*): ---- [bootloader] cmdline_my_profile=-rhgb quiet ---- ==== .Modifying the kernel command line, example with inheritance ==== For example, to add the [option]`rhgb quiet` kernel options to a *TuneD* profile `profile_1`: ---- [bootloader] cmdline_profile_1=+rhgb quiet ---- In the child profile `profile_2` drop the [option]`quiet` option from the kernel command line: ---- [main] include=profile_1 [bootloader] cmdline_profile_2=-quiet ---- The final kernel command line will be [option]`rhgb`. In case the same [option]`cmdline` suffix as in the `profile_1` is used: ---- [main] include=profile_1 [bootloader] cmdline_profile_1=-quiet ---- It will result in the empty kernel command line because the merge executes and the [option]`cmdline_profile_1` gets redefined to just [option]`-quiet`. Thus there is nothing to remove in the final kernel command line processing. ==== The [option]`initrd_add_img=IMAGE` adds an initrd overlay file `IMAGE`. If the `IMAGE` file name begins with '/', the absolute path is used. Otherwise, the current profile directory is used as the base directory for the `IMAGE`. The [option]`initrd_add_dir=DIR` creates an initrd image from the directory `DIR` and adds the resulting image as an overlay. If the `DIR` directory name begins with '/', the absolute path is used. Otherwise, the current profile directory is used as the base directory for the `DIR`. The [option]`initrd_dst_img=PATHNAME` sets the name and location of the resulting initrd image. Typically, it is not necessary to use this option. By default, the location of initrd images is `/boot` and the name of the image is taken as the basename of `IMAGE` or `DIR`. This can be overridden by setting [option]`initrd_dst_img`. The [option]`initrd_remove_dir=VALUE` removes the source directory from which the initrd image was built if `VALUE` is true. Only 'y', 'yes', 't', 'true' and '1' (case insensitive) are accepted as true values for this option. Other values are interpreted as false. .Adding an overlay initrd image ==== ---- [bootloader] initrd_remove_dir=True initrd_add_dir=/tmp/tuned-initrd.img ---- This creates an initrd image from the `/tmp/tuned-initrd.img` directory and and then removes the `tuned-initrd.img` directory from `/tmp`. ==== The [option]`skip_grub_config=VALUE` does not change grub configuration if `VALUE` is true. However, [option]`cmdline` options are still processed, and the result is used to verify the current cmdline. Only 'y', 'yes', 't', 'true' and '1' (case insensitive) are accepted as true values for this option. Other values are interpreted as false. .Do not change grub configuration ==== ---- [bootloader] skip_grub_config=True cmdline=+systemd.cpu_affinity=1 ---- ==== cs:tj tj¡st d¡‚tt|ƒj |i|¤Žt ƒ|_ dS)Nz4Required GRUB2 template not found, disabling plugin.) ÚosÚpathÚisfileÚconstsZGRUB2_TUNED_TEMPLATE_PATHrZNotSupportedPluginExceptionÚsuperrÚ__init__rÚ_cmd)ÚselfÚargsÚkwargs©Ú __class__©úC/usr/lib/python3.9/site-packages/tuned/plugins/plugin_bootloader.pyr°s zBootloaderPlugin.__init__cCsVd|_d|_d|_d|_d|_d|_d|_d|_| ¡|_ |  ¡|_ |  ¡du|_ dS)NFTÚ)Z_has_dynamic_tuningZ_has_static_tuningÚupdate_grub2_cfgÚ_skip_grub_config_valÚ_initrd_remove_dirÚ_initrd_dst_img_valÚ _cmdline_valÚ _initrd_valÚ_get_grub2_cfg_filesÚ_grub2_cfg_file_namesÚ _bls_enabledÚ_blsÚ_rpm_ostree_statusÚ _rpm_ostree©rÚinstancerrrÚ_instance_init¶s  zBootloaderPlugin._instance_initcCsdS©Nrr$rrrÚ_instance_cleanupÅsz"BootloaderPlugin._instance_cleanupcCsddddddddœS)N)Úgrub2_cfg_fileÚinitrd_dst_imgÚinitrd_add_imgÚinitrd_add_dirÚinitrd_remove_dirÚcmdlineÚskip_grub_configr)ÚclsrrrÚ_get_config_optionsÈsùz$BootloaderPlugin._get_config_optionscCsr|jjddgdd\}}}t d||f¡|dkr8dS| ¡}t|ƒdksX|dd krjt d |¡dS|d S) zW Returns status of rpm-ostree transactions or None if not run on rpm-ostree system ú rpm-ostreeÚstatusT©Z return_errz.rpm-ostree status output stdout: %s stderr: %srNézState:z2Exceptional format of rpm-ostree status result: %sr)rÚexecuteÚlogÚdebugÚsplitÚlenÚwarning)rÚrcÚoutÚerrZsplitedrrrr"Ôsz#BootloaderPlugin._rpm_ostree_statuscCs<d}d}t|ƒD]}| ¡dkr&dSt|ƒq| ¡dkS)z:Check that rpm-ostree is idle, allowing some waiting time.é gð?ZidleT)Úranger"r)rZ sleep_cyclesZ sleep_secsÚ_rrrÚ_wait_till_rpm_ostree_idleâs   z+BootloaderPlugin._wait_till_rpm_ostree_idlecCs`| ¡st d¡dS|jjddgdd\}}}|rBt d|¡|dkr\t d |¡dS|S) zPRetrieve the output of rpm-ostree kargs, i.e., current default kernel arguments.z2Error getting rpm-ostree kargs: rpm-ostree is busyNr2ÚkargsTr4zrpm-ostree kargs: %srz"Error getting rpm-ostree kargs: %s)rBr7Úerrorrr6r8)rr<r=r>rrrÚ_get_rpm_ostree_kargsìs z&BootloaderPlugin._get_rpm_ostree_kargscCsj| ¡st d¡dS|jjddgdd„|Dƒdd„|Dƒdd \}}}|d krft d |¡dSdS) z Modify (delete and append) kernel arguments in a rpm-ostree system. Return a boolean indicating whether the operation was successful. z4Error modifying rpm-ostree kargs: rpm-ostree is busyFr2rCcSsg|] }d|‘qS)z --delete=%sr©Ú.0ÚkargrrrÚ óz=BootloaderPlugin._modify_rpm_ostree_kargs..cSsg|] }d|‘qS)z --append=%srrFrrrrIrJTr4rz$Error modifying rpm-ostree kargs: %s)rBr7rDrr6)rÚ delete_kargsÚ append_kargsr<rAr>rrrÚ_modify_rpm_ostree_kargsùs  ÿ þý z)BootloaderPlugin._modify_rpm_ostree_kargsc CsH| ¡ ¡}g}|D]J}t|ƒ d¡r2| |¡q||vrH||||<qt d||jjf¡qd}|D]À}||}|dush|dkr†qh|d}|dd…}|dd…  ¡} |dksÂ|d krØ|d vrØ| dkrÖ|d | 7}qh|d kr| dkr(|   ¡D]$} t   | ¡} t   d | dd|¡}qôqh|d |7}qh|  ¡}|dkrD||d<|S)zSMerge provided options with plugin default options and merge all cmdline.* options.r.z$Unknown option '%s' for plugin '%s'.rNrrr5ú+ú\)rOrNú-ú rPz(\A|\s)z (?=\Z|\s))r1ÚcopyÚstrÚ startswithÚappendr7r;rÚ__name__Ústripr9ÚreÚescapeÚsub) rÚoptionsZ effectiveZ cmdline_keysÚkeyr.ÚvalÚopZop1ZvalsÚpZregexrrrÚ_get_effective_options s:        z'BootloaderPlugin._get_effective_optionscCs*g}tjD]}tj |¡r | |¡q |Sr')r ZGRUB2_CFG_FILESr r ÚexistsrU)rZ cfg_filesÚfrrrr,s    z%BootloaderPlugin._get_grub2_cfg_filescCsH|jjtjdd}t|ƒdkr2t dtj¡dStjd|tj dduS)NT©Zno_errorrúcannot read '%s'Fz=^\s*GRUB_ENABLE_BLSCFG\s*=\s*\"?\s*[tT][rR][uU][eE]\s*\"?\s*$©Úflags) rÚ read_filer ÚGRUB2_DEFAULT_ENV_FILEr:r7ÚinforXÚsearchÚ MULTILINE)rÚgrub2_default_envrrrr 3s ÿÿzBootloaderPlugin._bls_enabledcCs|j tj|¡Sr')rÚadd_modify_option_in_filer ÚBOOT_CMDLINE_FILE)rÚdrrrÚ_patch_bootcmdline<sz#BootloaderPlugin._patch_bootcmdlinecCsˆ| tjdtjdi¡|js*t d¡dS|jD]*}|jj|dtj ddtj diddq0|j dur„t d|j ¡|j  |j ¡dS)Nrúcannot find grub.cfg to patchzset\s+F)Úaddzremoving initrd image '%s') rpr ÚBOOT_CMDLINE_TUNED_VARÚBOOT_CMDLINE_INITRD_ADD_VARrr7rirrmÚGRUB2_TUNED_VARÚGRUB2_TUNED_INITRD_VARrÚunlink)rrbrrrÚ_remove_grub2_tuning?s  ( z%BootloaderPlugin._remove_grub2_tuningcCs:|j tj¡}tjtjd|tjd}|r6|d ¡SgS)z`Return the list of kernel arguments that were appended by this profile (in a rpm-ostree system).z =\"(.*)\"rer) rrgr rnrXrjrsrkr9)rrbZappendedrrrÚ_get_appended_rpm_ostree_kargsJsz/BootloaderPlugin._get_appended_rpm_ostree_kargscCs$|j| ¡d| tjdi¡dS)z6Remove kernel parameter tuning in a rpm-ostree system.)rKrN)rMryrpr rs©rrrrÚ_remove_rpm_ostree_tuningPsz*BootloaderPlugin._remove_rpm_ostree_tuningcCsP|tjkrL|jsL|jr*t d¡| ¡n"t d¡| ¡| dddœ¡dS)Nz4removing rpm-ostree tuning previously added by Tunedz/removing grub2 tuning previously added by Tunedr©Z tuned_paramsZ tuned_initrd) r Z ROLLBACK_FULLrr#r7rir{rxÚ_update_grubenv)rr%ZrollbackrrrÚ_instance_unapply_staticUs   z)BootloaderPlugin._instance_unapply_staticcCs®t d¡tjdtjdd|tjd}tjdtjd|tjd}tjdtjdd|tjd}tjdtjd|tjd}tjtjdd|tjd}tjtj dd|tjdS) Nzunpatching grub.cfgz ^\s*set\s+z\s*=.* rrez *\$ú\nz\n+) r7r8rXrZr rurkrvÚGRUB2_TEMPLATE_HEADER_BEGINÚGRUB2_TEMPLATE_HEADER_END)rÚ grub2_cfgÚcfgrrrÚ_grub2_cfg_unpatch_s z#BootloaderPlugin._grub2_cfg_unpatchcCsôt d¡dtjd}|D]0}|d|j |¡d|j ||¡d7}q|tjd7}tjd||tj d }tj tj d œ}|D]l}tjd |d d |||tj d }tjd |d||dd|tj d }tjd |dd|tj d }q‚|S)Nzinitial patching of grub.cfgz\1\n\nÚ zset z="ú" rz+^(\s*###\s+END\s+[^#]+/00_header\s+### *)\nre)ZlinuxZinitrdz^(\s*z(16|efi)?\s+.*)$z\1 $z(?:16|efi)?\s+\S+rescue.*)\$z *(.*)$z\1\2z(?:16|efi)?\s+\S+rescue.*) +$ú\1) r7r8r r€rrYrrXrZrkrurv)rr‚roÚsÚoptZd2ÚirrrÚ_grub2_cfg_patch_initialhs .$(z)BootloaderPlugin._grub2_cfg_patch_initialcCsÜ|j tj¡}t|ƒdkr.t dtj¡dStjtjdœ}d}|D]n}t j d|d||d|t j ddurDd }|d d krŠ|d 7}||d |d |d||d7}qD|rØt  dtj¡|j  tj|¡d S)NrrdF)ZGRUB_CMDLINE_LINUX_DEFAULTZGRUB_INITRD_OVERLAYz^[^#]*\bz \s*=.*\\\$z\b.*$reTéÿÿÿÿr…z="${z:+$z }\$r†z patching '%s')rrgr rhr:r7rirurvrXrjrkr8Ú write_to_file)rrlroÚwriterŠrrrÚ_grub2_default_env_patchzs  * *z)BootloaderPlugin._grub2_default_env_patchcCs¬|j tj¡}t|ƒdkr.t dtj¡dSd}tjdtj d|tj dr„d}tj dtj dd |tj d}|d d kr„|d 7}|r¨t  d tj¡|j  tj|¡dS) NrrdFzb^GRUB_CMDLINE_LINUX_DEFAULT=\"\$\{GRUB_CMDLINE_LINUX_DEFAULT:\+\$GRUB_CMDLINE_LINUX_DEFAULT \}\\\$z"$reTz"$ rrŒr…zunpatching '%s')rrgr rhr:r7rirXrjrurkrZr8r)rrlrŽrƒrrrÚ_grub2_default_env_unpatchs4 ÿÿÿÿÿÿ z+BootloaderPlugin._grub2_default_env_unpatchc CsPt d¡|jst d¡dS|jD] }|j |¡}t|ƒdkrRt d|¡q$t d|¡|}d}|D]^}tjd|dd |j  ||¡d |tj d \}}|d ksÆtj d ||tj d durld}qlttj d t j|tj d ƒttj d t j|tj d ƒkr d}|r"| | |¡|¡}|j ||¡q$|jrD| ¡n| ¡dS)Nzpatching grub.cfgrqFrzcannot patch %sz+adding boot command line parameters to '%s'z \b(set\s+z\s*=).*$z\1"ú"rerz\$T)r7r8rrirrgr:rXÚsubnrYrkrjÚfindallr rurvr‹r„rr!rr)rrorbr‚Z grub2_cfg_newZ patch_initialr‰ZnsubsrrrÚ_grub2_cfg_patch s6     4"ÿ z!BootloaderPlugin._grub2_cfg_patchcsœ| ¡}|j ¡}| ¡}|dur0t d¡dS| ¡‰|D]}ˆ |¡q<‡fdd„|Dƒ}||krtt d¡dS|j||dr˜|  t j d  |¡i¡dS)z5Apply kernel parameter tuning in a rpm-ostree system.Nz?Not updating kernel arguments, could not read the current ones.csg|]}|ˆvr|‘qSrrrF©Znon_tuned_kargsrrrIÏrJz7BootloaderPlugin._rpm_ostree_update..z+Kernel arguments already set, not updating.)rKrLrQ) ryrr9rEr7rDÚremoverirMrpr rsÚjoin)rZappended_kargsZ profile_kargsZ active_kargsrHZkargs_to_appendrr•rÚ_rpm_ostree_updateÀs    z#BootloaderPlugin._rpm_ostree_updatecCs8| tj|jtj|ji¡| tj|jtj|ji¡dSr') r”r rurrvrrprsrtrzrrrÚ _grub2_updateÚszBootloaderPlugin._grub2_updatecCstj tj¡Sr')r r rar ZBLS_ENTRIES_PATHrzrrrÚ_has_blsÞszBootloaderPlugin._has_blscCsZt dt|ƒ¡dd„| ¡Dƒ}|j gd¢|¡\}}|dkrVt d|¡dSdS) Nzupdating grubenv, setting %scSs$g|]\}}dt|ƒt|ƒf‘qS)z%s=%s)rS)rGÚoptionÚvaluerrrrIãrJz4BootloaderPlugin._update_grubenv..)z grub2-editenvrPÚsetrzcannot update grubenv: '%s'FT)r7r8rSÚitemsrr6r;)rroÚlr<r=rrrr}ász BootloaderPlugin._update_grubenvcCsb|j ¡}|dkrdSt dtj¡|jjtjdgd|id\}}|dkr^t d|¡dSd S) NrFz4running kernel update hook '%s' to patch BLS entriesrrZKERNEL_INSTALL_MACHINE_ID)Úenvrzcannot patch BLS entries: '%s'T)rZget_machine_idr7r8r ZKERNEL_UPDATE_HOOK_FILEr6r;)rZ machine_idr<r=rrrÚ_bls_entries_patch_initialês z+BootloaderPlugin._bls_entries_patch_initialcCs6t d¡| ¡r2| |j|jdœ¡r2| ¡r2dSdS)Nz updating BLSr|TF)r7r8ršr}rrr¡rzrrrÚ _bls_updateõs ÿþzBootloaderPlugin._bls_updatecCs(|jdur$tj tjtj |¡¡|_dSr')rr r r—r ÚBOOT_DIRÚbasename)rÚnamerrrÚ_init_initrd_dst_imgýs z%BootloaderPlugin._init_initrd_dst_imgcCstj tj¡Sr')r r Úisdirr ZPETITBOOT_DETECT_DIRrzrrrÚ_check_petitbootsz!BootloaderPlugin._check_petitbootcCs°|jrt d¡dS| ¡r&t d¡t d|j¡tj |j¡}|j   ||j¡sXdSd|_ |j   d¡  ¡}d}t|ƒ}|rœt dd |¡}t|ƒ|krœ|}tj ||¡|_dS) Nz:Detected rpm-ostree which doesn't support initrd overlays.FzkDetected Petitboot which doesn't support initrd overlays. The initrd overlay will be ignored by bootloader.zinstalling initrd image as '%s'Tú /proc/cmdlineú/z)^\s*BOOT_IMAGE=\s*(?:\([^)]*\))?(\S*/).*$r‡)r#r7r;r¨rirr r r¤rrRrrgÚrstripr:rXrZr—r)rZimgZimg_nameZ curr_cmdlineZinitrd_grubpathZlcr rrrÚ_install_initrds&   z BootloaderPlugin._install_initrdr)cCs$|rdS|r |dur t|ƒg|_dSr')rSr©rÚenablingrœÚverifyÚignore_missingr%rrrÚ_grub2_cfg_files z BootloaderPlugin._grub2_cfg_filer*cCsZ|rdS|rV|durVt|ƒ|_|jdkr,dS|jddkr>dStj tj|j¡|_dSdS)NrFrrªT)rSrr r r—r r£r­rrrÚ_initrd_dst_img!s   z BootloaderPlugin._initrd_dst_imgr-cCs.|rdS|r*|dur*|j |¡dk|_dSdS)NÚ1T)rÚget_boolrr­rrrr0s  z#BootloaderPlugin._initrd_remove_dirr+Fr?)Z per_deviceÚprioritycCsH|rdS|rD|durDt|ƒ}| |¡|dkr2dS| |¡s@dSdSdS)NrFT)rSr¦r¬)rr®rœr¯r°r%Zsrc_imgrrrÚ_initrd_add_img:s   z BootloaderPlugin._initrd_add_imgr,c Cs|rdS|r|durt|ƒ}| |¡|dkr6dStj |¡sTt d|¡dSt d|¡tj ddd\}}t  d|¡t  |¡|j j d ||d d \} } t  d | ¡| d krÚt d¡|j j|d ddS| |¡|j  |¡|jrt d|¡|j  |¡d SdS)NrFzFerror: cannot create initrd image, source directory '%s' doesn't existz+generating initrd image from directory '%s'ztuned-bootloader-z.tmp)ÚprefixÚsuffixz+writing initrd image to temporary file '%s'zfind . | cpio -co > %sT)ÚcwdÚshellz cpio log: %srzerror generating initrd imagerczremoving directory '%s')rSr¦r r r§r7rDriÚtempfileZmkstempr8Úcloserr6rwr¬rÚrmtree) rr®rœr¯r°r%Zsrc_dirÚfdZtmpfiler<r=rrrÚ_initrd_add_dirIs6       z BootloaderPlugin._initrd_add_dirr.cCsD|j |j |¡¡}|r|jr*| ¡}n |j d¡}|dusJt|ƒdkrNdSt|  ¡ƒ}t|  ¡ƒ} | |} t| ƒdkr–t   t j dt| ƒf¡dSdd„|Dƒ} | D]J} |   dd¡d} | | vrÚt  t j| | f¡q¨t  t j| | | f¡q¨| |@}t   d d  |¡f¡d S|r@|dur@t   d ¡d|_||_dSdS) Nr©rr.TcSsi|]}| dd¡d|“qS)ú=rr)r9)rGÚvrrrÚ zrJz-BootloaderPlugin._cmdline..rÀrz2expected arguments that are present in cmdline: %srQFz;installing additional boot command line parameters to grub2)Z _variablesÚexpandrÚunquoter#rErgr:rr9r7rir ZSTR_VERIFY_PROFILE_VALUE_OKrSrDZ'STR_VERIFY_PROFILE_CMDLINE_FAIL_MISSINGZSTR_VERIFY_PROFILE_CMDLINE_FAILr—rr)rr®rœr¯r°r%rÁr.Z cmdline_setZ value_setZ missing_setZ cmdline_dictÚmÚargZ present_setrrrÚ_cmdlineis8      zBootloaderPlugin._cmdliner/cCs<|rdS|r8|dur8|j |¡dkr8t d¡d|_dSdS)Nr³z(skipping any modification of grub configT)rr´r7rirr­rrrÚ_skip_grub_config‹s  z"BootloaderPlugin._skip_grub_configcCsŠ|rV|jrVt|jƒdkr"t d¡t|jƒdkr:t d¡| tj|jtj |ji¡n0|r†|j r†|j rp|  ¡n|  ¡| ¡d|_ dS)Nrz0requested changes to initrd will not be applied!z1requested changes to cmdline will not be applied!F)rr:rr7r;rrpr rsrtrr#r˜r™r¢)rr%r®rrrÚ_instance_post_static–s     z&BootloaderPlugin._instance_post_static)/rVÚ __module__Ú __qualname__Ú__doc__rr&r(Ú classmethodr1r"rBrErMr`rr rprxryr{r Z ROLLBACK_SOFTr~r„r‹rrr”r˜r™ršr}r¡r¢r¦r¨r¬Zcommand_customr±r²rr¶r¿rÇrÈrÉÚ __classcell__rrrrrs`!    "               !  r)rrZ decoratorsZ tuned.logsZtunedrZtuned.utils.commandsrZ tuned.constsr r rXr»ÚtimerZlogsÚgetr7ZPluginrrrrrÚs