Discuss the gbde lockfile

PR:		113695
Submitted by:	Marc Silver <marcs@draenor.org>
This commit is contained in:
Tom Rhodes 2008-01-21 21:08:05 +00:00
parent d82a612647
commit 7e383b86e6
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=31335

View file

@ -3566,7 +3566,7 @@ Password:</screen>
initialized before it can be used. This initialization needs to initialized before it can be used. This initialization needs to
be performed only once:</para> be performed only once:</para>
<screen>&prompt.root; <userinput>gbde init /dev/ad4s1c -i -L /etc/gbde/ad4s1c</userinput></screen> <screen>&prompt.root; <userinput>gbde init /dev/ad4s1c -i -L /etc/gbde/ad4s1c.lock</userinput></screen>
<para>&man.gbde.8; will open your editor, permitting you to set <para>&man.gbde.8; will open your editor, permitting you to set
various configuration options in a template. For use with UFS1 various configuration options in a template. For use with UFS1
@ -3598,7 +3598,11 @@ sector_size = 2048
<para>The <command>gbde init</command> command creates a lock <para>The <command>gbde init</command> command creates a lock
file for your <application>gbde</application> partition that in file for your <application>gbde</application> partition that in
this example is stored as this example is stored as
<filename>/etc/gbde/ad4s1c</filename>.</para> <filename>/etc/gbde/ad4s1c.lock</filename>.
<application>gbde</application> lock files must end in
<quote>.lock</quote> in order to be correctly detected by
the <application>gbde</application>
<filename>/etc/rc.d/gbde</filename> start up script.</para>
<caution> <caution>
<para><application>gbde</application> lock files <para><application>gbde</application> lock files
@ -3616,7 +3620,7 @@ sector_size = 2048
<step> <step>
<title>Attach the Encrypted Partition to the Kernel</title> <title>Attach the Encrypted Partition to the Kernel</title>
<screen>&prompt.root; <userinput>gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c</userinput></screen> <screen>&prompt.root; <userinput>gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c.lock</userinput></screen>
<para> You will be asked to provide the passphrase that you <para> You will be asked to provide the passphrase that you
selected during the initialization of the encrypted partition. selected during the initialization of the encrypted partition.
@ -3693,7 +3697,7 @@ Filesystem Size Used Avail Capacity Mounted on
<step> <step>
<title>Attach the gbde Partition to the Kernel</title> <title>Attach the gbde Partition to the Kernel</title>
<screen>&prompt.root; <userinput>gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c</userinput></screen> <screen>&prompt.root; <userinput>gbde attach /dev/ad4s1c -l /etc/gbde/ad4s1c.lock</userinput></screen>
<para>You will be asked to provide the passphrase that you <para>You will be asked to provide the passphrase that you
selected during initialization of the encrypted selected during initialization of the encrypted
@ -3734,7 +3738,8 @@ Filesystem Size Used Avail Capacity Mounted on
&man.rc.conf.5;, for example:</para> &man.rc.conf.5;, for example:</para>
<programlisting>gbde_autoattach_all="YES" <programlisting>gbde_autoattach_all="YES"
gbde_devices="ad4s1c"</programlisting> gbde_devices="ad4s1c"
gbde_lockdir="/etc/gbde"</programlisting>
<para>This will require that the <application>gbde</application> <para>This will require that the <application>gbde</application>
passphrase be entered at boot time. After typing the correct passphrase be entered at boot time. After typing the correct