YaST2 Developers Documentation: yast2-bootloader



functions
files
intro

yast2-bootloader

clients/bootfloppy.ycp
Boot floppy creation
This module create boot floppies and module floppies. You can use a new boot/install floppy to boot either the installed system or the rescue system from CD.

Imports

  • Label
  • Popup
  • Report
  • Sequencer
  • Wizard

Local Functions

local getImageWritingLabel (string image) -> string

Get strnig to show while writing the image to floppy

Parameters:
image string image name
Return value:
label to show

local showPopup (string label) -> void

Show popup with a custom message

Parameters:
label string message to show

local hidePopup () -> void

Hide shown popup window

local floppyMountSource () -> void

Try to mount source medium e.g. CD1 or a directory on the harddisk. If no source medium is found, the user can select a new source medium like in the module software selection.

local isFloppyMounted (string floppy) -> map

Read /proc/mounts and return a list with all mounted devices

Parameters:
floppy string device name of floppy to check
Return value:
floppy mountpoint info

local isUsbdiskMounted (string usbdisk) -> map

Read /proc/mounts and return a list with all mounted devices

Parameters:
usbdisk
Return value:
usbdisk mountpoint info

local floppyHelpSelectImage (boolean modules) -> string

Helptext for the define floppySelectImage. Called from the floppySelectImage.

Parameters:
modules boolean if true then shows a list of modules instead of main dialog
Return value:
help text

local floppyHelpInsertDisk () -> string

Helptext for the define floppyInsertDisk. Called from the floppyInsertDisk.

Return value:
help text

local floppyHelpCopyImage () -> string

Helptext for the define floppyCopyImage. Called from the floppyCopyImage.

Return value:
help text

local usbdiskHelpCopyImage () -> string

Helptext for the define floppyCopyImage. Called from the floppyCopyImage.

Return value:
help text

local floppyHelpSelectFile () -> string

Helptext for the define floppySelectFile. Called from the floppySelectFile.

Return value:
help text

local floppyHelpSelectURL () -> string

Helptext for the define floppySelectURL. Called from the floppySelectURL.

Return value:
help text

local floppySelectImage (boolean modules) -> symbol

Display a dialog that lets the user choose among different images. Save the selected image in the global variable file_image. Called from the sequencer.

Parameters:
modules boolean if true then shows a list of modules instead of main dialog
Return value:
wizard sequencer symbol

local floppySelectFile () -> symbol

Display a dialog that lets the select file with floppy image. Save the selected file name in the global variable filename. Called from the sequencer.

Return value:
wizard sequencer symbol

local floppySelectURL () -> symbol

Display a dialog that lets the select URL with floppy image. Save the URL and downloaded file name in the global variable filename. Called from the sequencer.

Return value:
wizard sequencer symbol

local floppyInsertDisk () -> symbol

Display a dialog that prompts for a floppy.

Return value:
system

local floppyCopyImage () -> symbol

Copy the selected image to the floppy. Called from the sequenser.

Return value:
wizard sequencer symbol

local usbdiskInsertDisk () -> symbol

Display a dialog that prompts for a usbdisk.

Return value:
system

local usbdiskCopyImage () -> symbol

Copy the selected image to the usbdisk. Called from the sequenser.

Return value:
wizard sequencer symbol

YaST2 Developers Documentation