Skipped content of type multipart/mixed-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060907/2a51a3f2/attachment.pgp
>From Daniel Bond <db@danielbond.org>, Thu, Sep 07, 2006 at 08:13:11PM +0200: > Hi, > > I just setup GBDE on my laptop, encrypting my 512M cf-card. > This works like a charm, but I felt the need to enchance the rc-script a > little to automatically mount the encrypted drive(s), if you have the > following in /etc/rc.conf: > > * gbde_autoattach_all="YES" > * gbde_devices="device1 device2 .. etc" > > So I added another option: > * gbde_mountpoint="/private" to /etc/defaults/rc.conf > > This option acts like a basedir for mounting the partition, IE. after running > /etc/rc.d/gbde start, I get the following mount entry in the the mount-command > output: > > /dev/ad1s1c.bde on /private/bde_ad1s1c (ufs, local, soft-updates) >It seems to me that this is really something that belongs in devd. Boot-time is decidedly not ideal. Paul
On 11:31 Thu 07 Sep, Paul Allen wrote:> From Daniel Bond <db@danielbond.org>, Thu, Sep 07, 2006 at 08:13:11PM +0200: > > Hi, > > > > I just setup GBDE on my laptop, encrypting my 512M cf-card. > > This works like a charm, but I felt the need to enchance the rc-script a > > little to automatically mount the encrypted drive(s), if you have the > > following in /etc/rc.conf: > > > > * gbde_autoattach_all="YES" > > * gbde_devices="device1 device2 .. etc" > > > > So I added another option: > > * gbde_mountpoint="/private" to /etc/defaults/rc.conf > > > > This option acts like a basedir for mounting the partition, IE. after running > > /etc/rc.d/gbde start, I get the following mount entry in the the mount-command > > output: > > > > /dev/ad1s1c.bde on /private/bde_ad1s1c (ufs, local, soft-updates) > > > It seems to me that this is really something that belongs in devd. Boot-time > is decidedly not ideal. > > PaulNice, thankyou :) -- Med vennlig hilsen / Best regards, ------------------------------------------ Daniel Bond PGP: C822C4BD ------------------------------------------
On Thu, Sep 07, 2006 at 08:13:11PM +0200, Daniel Bond wrote:> Hi, > > I just setup GBDE on my laptop, encrypting my 512M cf-card. > This works like a charm, but I felt the need to enchance the rc-script a > little to automatically mount the encrypted drive(s), if you have the > following in /etc/rc.conf:[snip] How is this better/different from just adding the gbde device to /etc/fstab and have it mounted along with all other filesystems? Thanks, Tobias
On 14:13 Fri 08 Sep, Tobias Roth wrote:> On Thu, Sep 07, 2006 at 08:13:11PM +0200, Daniel Bond wrote: > > Hi, > > > > I just setup GBDE on my laptop, encrypting my 512M cf-card. > > This works like a charm, but I felt the need to enchance the rc-script a > > little to automatically mount the encrypted drive(s), if you have the > > following in /etc/rc.conf: > > [snip] > > How is this better/different from just adding the gbde device to > /etc/fstab and have it mounted along with all other filesystems? > > Thanks, > TobiasIt says in the handbook: "Since encrypted file systems cannot yet be listed in /etc/fstab for automatic mounting, the file systems must be checked for errors by running fsck(8) manually before mounting." -- Med vennlig hilsen / Best regards, ------------------------------------------ Daniel Bond PGP: C822C4BD ------------------------------------------