ACC SHELL
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>
RootPart.ycp
</title>
<style type="text/css">body { background-color: #c8c8c8 }
h1 { color: #e00000 }
table { width: 100%/ border: none }
img { border: 0px }
.sigbox { background-color: #ffc080; border: solid thin #f96500 }
.sig { font: larger monospace }
.padtbl { background-color: #ffc080; padding: 10px; margin: 10px }
/* arrow */
.a { color: #606060 }
/* type, parameter */
.t, .p { color: #c05000 }
.pbox { width: 20% }
.descbox { }
.right { align: right }
.header {}
.footer { clear: both}
.menu { width: 10%; float: left }
.main { width: 90%; float: left }
</style>
</head>
<body>
<div class="header">
<i>YaST2 Developers Documentation:</i>
<a href="index.html">
<b>
RootPart.ycp
</b>
</a>
<img class="right" alt="" src="/usr/share/doc/packages/yast2-devtools/images/yast2-mini.png" />
<hr />
</div>
<div class="menu">
<img alt="YaST" src="/usr/share/doc/packages/yast2-devtools/images/yast2-half.png" />
<br />
<br />
<a href="index.html">functions</a>
<br />
<a href="files.html">files</a>
<br />
<a href="intro.html">intro</a>
</div>
<div class="main">
<div class="sigbox">
<table class="padtbl">
<tr>
<td>
<h1>
RootPart.ycp
</h1>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>
<ul>
<li>Arvin Schnell <arvin@suse.de></li>
<li> Purpose: Responsible for searching of root partitions and</li>
<li> mounting of target partitions.</li>
</ul>
</td>
</tr>
<tr>
<td>
<p>This module has an unstable interface.</p>
</td>
</tr>
</table>
<table class="padtbl">
<tr>
<td>
<h1>Imports</h1>
<ul>
<li>Arch</li>
<li>Directory</li>
<li>FileSystems</li>
<li>FileUtils</li>
<li>Installation</li>
<li>Label</li>
<li>Linuxrc</li>
<li>Mode</li>
<li>ModuleLoading</li>
<li>Popup</li>
<li>Report</li>
<li>Stage</li>
<li>Storage</li>
<li>String</li>
<li>SuSERelease</li>
<li>Update</li>
<li>Wizard</li>
</ul>
<h1>Includes</h1>
<ul>
<li>partitioning/custom_part_dialogs.ycp</li>
</ul>
<h1>Global Functions</h1>
<ul>
<li>
<a href="#AnyQuestionAnyButtonsDetails">AnyQuestionAnyButtonsDetails (string headline, string question, string button_yes, string button_no, string details)</a>
</li>
<li>
<a href="#FindRootPartitions">FindRootPartitions ()</a>
</li>
<li>
<a href="#GetActivated">GetActivated ()</a>
</li>
<li>
<a href="#GetInfoOfSelected">GetInfoOfSelected (symbol what)</a>
</li>
<li>
<a href="#IncompleteInstallationDetected">IncompleteInstallationDetected (string mounted_to)</a>
</li>
<li>
<a href="#MountPartitions">MountPartitions (string root_device_current)</a>
</li>
<li>
<a href="#SetSelectedToValid">SetSelectedToValid ()</a>
</li>
<li>
<a href="#UnmountPartitions">UnmountPartitions (boolean keep_in_target)</a>
</li>
</ul>
<h1>Local Variables</h1>
<ul>
<li>
<a href="#activated">activated</a>
</li>
<li>
<a href="#sdb">sdb</a>
</li>
</ul>
<h1>Local Functions</h1>
<ul>
<li>
<a href="#AddMountedPartition">AddMountedPartition (map <symbol, string> partinfo)</a>
</li>
<li>
<a href="#AddToTargetMap">AddToTargetMap ()</a>
</li>
<li>
<a href="#CheckPartition">CheckPartition (map partition)</a>
</li>
<li>
<a href="#FSCKPartition">FSCKPartition (string partition)</a>
</li>
<li>
<a href="#FindPartitionInFstab">FindPartitionInFstab (list <map> & fstab, string mountpoint)</a>
</li>
<li>
<a href="#FsckAndMount">FsckAndMount (string mount_point, string device, string mount_type)</a>
</li>
<li>
<a href="#GetArchOfELF">GetArchOfELF (string filename)</a>
</li>
<li>
<a href="#IsMounted">IsMounted (string mountpoint)</a>
</li>
<li>
<a href="#MountFSTab">MountFSTab (list <map> fstab, string& message)</a>
</li>
<li>
<a href="#MountPartition">MountPartition (string mount_point, string device, string mount_type)</a>
</li>
<li>
<a href="#MountVarIfRequired">MountVarIfRequired (list <map> fstab, string root_device_current, boolean manual_var_mount)</a>
</li>
<li>
<a href="#MountVarPartition">MountVarPartition (string device)</a>
</li>
<li>
<a href="#PrepareCryptoTab">PrepareCryptoTab (list <map> crtab, list <map>& fstab)</a>
</li>
<li>
<a href="#RemoveFromTargetMap">RemoveFromTargetMap ()</a>
</li>
<li>
<a href="#RunFSCKonJFS">RunFSCKonJFS (string mount_type, string device, string & error_message)</a>
</li>
<li>
<a href="#TranslateFsOrCryptoTab">TranslateFsOrCryptoTab (list <map> translate, string key_to_translate, string key_preserve_as)</a>
</li>
<li>
<a href="#check_root_device">check_root_device (string partition, list <map> fstab, string& found_partition)</a>
</li>
<li>
<a href="#readCryptoTab">readCryptoTab (list <map> & crtab)</a>
</li>
<li>
<a href="#readFsTab">readFsTab (list <map> & fstab)</a>
</li>
<li>
<a href="#read_fstab_and_cryptotab">read_fstab_and_cryptotab (list <map>& fstab, list <map>& crtab, string root_device_current)</a>
</li>
</ul>
</td>
</tr>
</table>
</div>
<p />
<div class="sigbox">
<span class="sig" id="activated">local
<b>activated
<span class="a"> -> </span>
<span class="t">list <map <symbol, string> ></span>
</b>
</span>
</div>
<p>
List of mounted partitions, activated swap partitions and loop devices.
Amongst other things used for reversing action if mode is changed from
update to new installation or if root partition for update is changed.
The order of the list if of paramount importance.</p>
<p>
Each item is list [string value, string type [, string device]] where:</p>
<p>
Keys/values are:</p>
<p>
`type The type, one of "mount", "swap" or "crypt".</p>
<p>
`device The device.</p>
<div class="sigbox">
<span class="sig" id="GetActivated">global
<b>GetActivated ()
<span class="a"> -> </span>
<span class="t">list <map <symbol, string> ></span>
</b>
</span>
</div>
<p>
Returns currently activated partitions.</p>
<dl>
<dt>
<b>Return value:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="t" />
</td>
<td class="descbox">activated</td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="sdb">local
<b>sdb
<span class="a"> -> </span>
<span class="t">string</span>
</b>
</span>
</div>
<p>
Link to SDB article concerning renaming of devices.</p>
<div class="sigbox">
<span class="sig" id="GetInfoOfSelected">global
<b>GetInfoOfSelected (symbol what)
<span class="a"> -> </span>
<span class="t">string</span>
</b>
</span>
</div>
<p>
Get the key what of the selected root partition.</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">what</span>
</td>
<td class="descbox"></td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="SetSelectedToValid">global
<b>SetSelectedToValid ()
<span class="a"> -> </span>
<span class="t">void</span>
</b>
</span>
</div>
<p>
Set the selected root partition to some valid one. Only
make sense if the number of valid root partition is one.</p>
<div class="sigbox">
<span class="sig" id="AddToTargetMap">local
<b>AddToTargetMap ()
<span class="a"> -> </span>
<span class="t">void</span>
</b>
</span>
</div>
<p>
</p>
<div class="sigbox">
<span class="sig" id="RemoveFromTargetMap">local
<b>RemoveFromTargetMap ()
<span class="a"> -> </span>
<span class="t">void</span>
</b>
</span>
</div>
<p>
</p>
<div class="sigbox">
<span class="sig" id="UnmountPartitions">global
<b>UnmountPartitions (boolean keep_in_target)
<span class="a"> -> </span>
<span class="t">void</span>
</b>
</span>
</div>
<p>
Unmount all mounted partitions, deactivate swaps, detach loopback
devices. Uses list activated to make actions in reverse order.</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">keep_in_target</span>
</td>
<td class="descbox"></td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="AddMountedPartition">local
<b>AddMountedPartition (map <symbol, string> partinfo)
<span class="a"> -> </span>
<span class="t">void</span>
</b>
</span>
</div>
<p>
Add information about mounted partition to internal list.</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">partinfo</span>
</td>
<td class="descbox">partinfo has to be list with exactly two strings,
see description of list "activated"</td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="FSCKPartition">local
<b>FSCKPartition (string partition)
<span class="a"> -> </span>
<span class="t">void</span>
</b>
</span>
</div>
<p>
Check the filesystem of a partition.</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">partition</span>
</td>
<td class="descbox"></td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="AnyQuestionAnyButtonsDetails">global
<b>AnyQuestionAnyButtonsDetails (string headline, string question, string button_yes, string button_no, string details)
<span class="a"> -> </span>
<span class="t">boolean</span>
</b>
</span>
</div>
<p></p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">headline</span>
</td>
<td class="descbox"></td>
</tr>
<tr>
<td class="pbox">
<span class="p">question</span>
</td>
<td class="descbox"></td>
</tr>
<tr>
<td class="pbox">
<span class="p">button_yes</span>
</td>
<td class="descbox"></td>
</tr>
<tr>
<td class="pbox">
<span class="p">button_no</span>
</td>
<td class="descbox"></td>
</tr>
<tr>
<td class="pbox">
<span class="p">details</span>
</td>
<td class="descbox"></td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="RunFSCKonJFS">local
<b>RunFSCKonJFS (string mount_type, string device, string & error_message)
<span class="a"> -> </span>
<span class="t">boolean</span>
</b>
</span>
</div>
<p>
Function checks the device and returns whether it is OK or not.
The read-only FS check is performed for jfs only and only one for
one device.</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">mount_type</span>
</td>
<td class="descbox"></td>
</tr>
<tr>
<td class="pbox">
<span class="p">device</span>
</td>
<td class="descbox"></td>
</tr>
<tr>
<td class="pbox">
<span class="p">error_message</span>
</td>
<td class="descbox"></td>
</tr>
</table>
</dd>
</dl>
<dl>
<dt>
<b>Return value:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="t" />
</td>
<td class="descbox">if successfull or if user forces it</td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="MountPartition">local
<b>MountPartition (string mount_point, string device, string mount_type)
<span class="a"> -> </span>
<span class="t">string</span>
</b>
</span>
</div>
<p>
Mount partition on specified mount point</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">mount_point</span>
</td>
<td class="descbox">string mount point to monut the partition at</td>
</tr>
<tr>
<td class="pbox">
<span class="p">device</span>
</td>
<td class="descbox">string device to mount</td>
</tr>
<tr>
<td class="pbox">
<span class="p">mount_type</span>
</td>
<td class="descbox">string filesystem type to be specified while mounting</td>
</tr>
</table>
</dd>
</dl>
<dl>
<dt>
<b>Return value:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="t" />
</td>
<td class="descbox">nil on success, error description on fail</td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="FsckAndMount">local
<b>FsckAndMount (string mount_point, string device, string mount_type)
<span class="a"> -> </span>
<span class="t">string</span>
</b>
</span>
</div>
<p>
Check filesystem on a partition and mount the partition on specified mount
point</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">mount_point</span>
</td>
<td class="descbox">string mount point to monut the partition at</td>
</tr>
<tr>
<td class="pbox">
<span class="p">device</span>
</td>
<td class="descbox">string device to mount</td>
</tr>
<tr>
<td class="pbox">
<span class="p">mount_type</span>
</td>
<td class="descbox">string filesystem type to be specified while mounting</td>
</tr>
</table>
</dd>
</dl>
<dl>
<dt>
<b>Return value:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="t" />
</td>
<td class="descbox">nil on success, error description on fail</td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="check_root_device">local
<b>check_root_device (string partition, list <map> fstab, string& found_partition)
<span class="a"> -> </span>
<span class="t">boolean</span>
</b>
</span>
</div>
<p>
Check that the root filesystem in fstab has the correct device.</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">partition</span>
</td>
<td class="descbox"></td>
</tr>
<tr>
<td class="pbox">
<span class="p">fstab</span>
</td>
<td class="descbox"></td>
</tr>
<tr>
<td class="pbox">
<span class="p">found_partition</span>
</td>
<td class="descbox"></td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="FindPartitionInFstab">local
<b>FindPartitionInFstab (list <map> & fstab, string mountpoint)
<span class="a"> -> </span>
<span class="t">string</span>
</b>
</span>
</div>
<p>
Find a mount point in fstab</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">fstab</span>
</td>
<td class="descbox">a list of fstab entries</td>
</tr>
<tr>
<td class="pbox">
<span class="p">mountpoint</span>
</td>
<td class="descbox">string a mount point to find</td>
</tr>
</table>
</dd>
</dl>
<dl>
<dt>
<b>Return value:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="t" />
</td>
<td class="descbox">the found partition</td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="TranslateFsOrCryptoTab">local
<b>TranslateFsOrCryptoTab (list <map> translate, string key_to_translate, string key_preserve_as)
<span class="a"> -> </span>
<span class="t">list <map></span>
</b>
</span>
</div>
<p>
Translates FS or Cryptotab (old devices to new ones).
Such as /dev/hda5 to /dev/sda5.</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">translate</span>
</td>
<td class="descbox"></td>
</tr>
<tr>
<td class="pbox">
<span class="p">key_to_translate</span>
</td>
<td class="descbox"></td>
</tr>
<tr>
<td class="pbox">
<span class="p">key_preserve_as</span>
</td>
<td class="descbox"></td>
</tr>
</table>
</dd>
</dl>
<dl>
<dt>
<b>Return value:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="t" />
</td>
<td class="descbox">of translated definitions
</td>
</tr>
</table>
</dd>
</dl>
<dl>
<dt>
<b>See</b>
</dt>
<dd>
<table>
<tr>
<td align="left" valign="top"><a href="#https://bugzilla.novell.com/show_bug.cgi?id=258222">https://bugzilla.novell.com/show_bug.cgi?id=258222</a></td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="readFsTab">local
<b>readFsTab (list <map> & fstab)
<span class="a"> -> </span>
<span class="t">void</span>
</b>
</span>
</div>
<p>
Register a new fstab agent and read the configuration
from Installation::destdir</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">fstab</span>
</td>
<td class="descbox"></td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="readCryptoTab">local
<b>readCryptoTab (list <map> & crtab)
<span class="a"> -> </span>
<span class="t">void</span>
</b>
</span>
</div>
<p>
Register a new cryptotab agent and read the configuration
from Installation::destdir</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">crtab</span>
</td>
<td class="descbox"></td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="read_fstab_and_cryptotab">local
<b>read_fstab_and_cryptotab (list <map>& fstab, list <map>& crtab, string root_device_current)
<span class="a"> -> </span>
<span class="t">boolean</span>
</b>
</span>
</div>
<p>
Reads FSTab and CryptoTab and fills fstab and crtab got as parameters.
Uses Installation::destdir as the base mount point.</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">fstab</span>
</td>
<td class="descbox"></td>
</tr>
<tr>
<td class="pbox">
<span class="p">crtab</span>
</td>
<td class="descbox"></td>
</tr>
<tr>
<td class="pbox">
<span class="p">root_device_current</span>
</td>
<td class="descbox"></td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="PrepareCryptoTab">local
<b>PrepareCryptoTab (list <map> crtab, list <map>& fstab)
<span class="a"> -> </span>
<span class="t">boolean</span>
</b>
</span>
</div>
<p>
</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">crtab</span>
</td>
<td class="descbox"></td>
</tr>
<tr>
<td class="pbox">
<span class="p">fstab</span>
</td>
<td class="descbox"></td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="IsMounted">local
<b>IsMounted (string mountpoint)
<span class="a"> -> </span>
<span class="t">boolean</span>
</b>
</span>
</div>
<p>
Check if specified mount point is mounted</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">mountpoint</span>
</td>
<td class="descbox">the mount point to be checked</td>
</tr>
</table>
</dd>
</dl>
<dl>
<dt>
<b>Return value:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="t" />
</td>
<td class="descbox">true if it is mounted</td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="MountFSTab">local
<b>MountFSTab (list <map> fstab, string& message)
<span class="a"> -> </span>
<span class="t">boolean</span>
</b>
</span>
</div>
<p>
</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">fstab</span>
</td>
<td class="descbox"></td>
</tr>
<tr>
<td class="pbox">
<span class="p">message</span>
</td>
<td class="descbox"></td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="MountVarPartition">local
<b>MountVarPartition (string device)
<span class="a"> -> </span>
<span class="t">string</span>
</b>
</span>
</div>
<p>
Mount /var partition</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">device</span>
</td>
<td class="descbox">string device holding the /var subtree</td>
</tr>
</table>
</dd>
</dl>
<dl>
<dt>
<b>Return value:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="t" />
</td>
<td class="descbox">nil on success, error description on fail</td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="MountVarIfRequired">local
<b>MountVarIfRequired (list <map> fstab, string root_device_current, boolean manual_var_mount)
<span class="a"> -> </span>
<span class="t">string</span>
</b>
</span>
</div>
<p>
Check if /var partition is needed, mount it if it is</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">fstab</span>
</td>
<td class="descbox">a list of fstab entries</td>
</tr>
<tr>
<td class="pbox">
<span class="p">root_device_current</span>
</td>
<td class="descbox">string current root device</td>
</tr>
<tr>
<td class="pbox">
<span class="p">manual_var_mount</span>
</td>
<td class="descbox">whether to ask user to enter /var device if not found</td>
</tr>
</table>
</dd>
</dl>
<dl>
<dt>
<b>Return value:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="t" />
</td>
<td class="descbox">nil on success, error description on fail</td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="MountPartitions">global
<b>MountPartitions (string root_device_current)
<span class="a"> -> </span>
<span class="t">boolean</span>
</b>
</span>
</div>
<p>
Mounting root-partition; reading fstab and mounting read partitions</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">root_device_current</span>
</td>
<td class="descbox"></td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="GetArchOfELF">local
<b>GetArchOfELF (string filename)
<span class="a"> -> </span>
<span class="t">string</span>
</b>
</span>
</div>
<p>
Get architecture of an elf file.</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">filename</span>
</td>
<td class="descbox"></td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="IncompleteInstallationDetected">global
<b>IncompleteInstallationDetected (string mounted_to)
<span class="a"> -> </span>
<span class="t">boolean</span>
</b>
</span>
</div>
<p>
Checks the partition whether it contains an incomplete installation.</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">mounted_to</span>
</td>
<td class="descbox"></td>
</tr>
</table>
</dd>
</dl>
<dl>
<dt>
<b>Return value:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="t" />
</td>
<td class="descbox">true if incomplete</td>
</tr>
</table>
</dd>
</dl>
<dl>
<dt>
<b>See</b>
</dt>
<dd>
<table>
<tr>
<td align="left" valign="top"><a href="#BNC #441919">BNC #441919</a></td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="CheckPartition">local
<b>CheckPartition (map partition)
<span class="a"> -> </span>
<span class="t">map</span>
</b>
</span>
</div>
<p>
Check a root partition and return map with infomations (see
variable rootPartitions).</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">partition</span>
</td>
<td class="descbox"></td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="FindRootPartitions">global
<b>FindRootPartitions ()
<span class="a"> -> </span>
<span class="t">void</span>
</b>
</span>
</div>
<p>
Find all valid root partitions and place the result in rootPartitions.
The partitions are mounted and unmounted again (to Installation::destdir).
Loads a bunch of kernel modules.</p>
</div>
<div class="footer">
<hr />
<i>YaST2 Developers Documentation</i>
<img class="right" alt="" src="/usr/share/doc/packages/yast2-devtools/images/yast2-mini.png" />
</div>
</body>
</html>
ACC SHELL 2018