Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Dec 2013 15:49:42 +0000
From:      "Teske, Devin" <Devin.Teske@fisglobal.com>
To:        Pavel Timofeev <timp87@gmail.com>
Cc:        Devin Teske <dteske@freebsd.org>, freebsd-stable stable <freebsd-stable@freebsd.org>, "Teske, Devin" <Devin.Teske@fisglobal.com>
Subject:   Re: 10.0-BETA4 bsdinstall zfs encryption broken
Message-ID:  <A7DF3606-B33E-4117-A1DB-FE759E0A0E5F@fisglobal.com>
In-Reply-To: <CAAoTqftxt74DEWjxeYtpaiavqiuj8_gawY4%2BGpHirWM-FPaKQQ@mail.gmail.com>
References:  <CAAoTqfu904a=W8zZ_170bjVUUeqxe-Jajo_W=g%2BU2vk%2BwTdaeg@mail.gmail.com> <099CD122-B7D8-4FC1-9C99-F19248418CD0@fisglobal.com> <CAAoTqftxt74DEWjxeYtpaiavqiuj8_gawY4%2BGpHirWM-FPaKQQ@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Dec 4, 2013, at 7:40 AM, Pavel Timofeev wrote:

> It's standard name. I didn't change anything, except encryption button.
>

Thanks.

Looks like the problem is whitespace in the code.


--
Devin




> 04.12.2013 19:36 пользователь "Teske, Devin" <Devin.Teske@fisglobal.com> написал:
>
> On Dec 4, 2013, at 3:39 AM, Pavel Timofeev wrote:
>
> > Hi all!
> > Lastest 10.0-BETA4 can't be installed using bsdinstall on ZFS with encryption.
> > Bsdinstall's broken. It gives an error:
> >
> > missing pool name argument
> > usage:
> >    create [<here is help output>]
> > eval: -m: not found.
>
> What did you use for a pool name? (did it have a space? try without)
>
> Are you capable of plucking the /tmp/bsdinstall_log file from the
> installation environment in order to send us a copy?
> --
> Devin
>
>
>
>
> > _______________________________________________
> > freebsd-stable@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
>
> _____________
> The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.


_____________
The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.

[-- Attachment #2 --]
Index: scripts/zfsboot
===================================================================
--- scripts/zfsboot	(revision 258021)
+++ scripts/zfsboot	(working copy)
@@ -961,7 +961,7 @@ zfs_create_boot()
 	# If encryption is enabled, we need to create the GEOMs
 	#
 	if [ "$ZFSBOOT_GELI_ENCRYPTION" ]; then
-		local bootvdev=
+		local bootvdev= options=
 		local geli_pool="$BSDINSTALL_CHROOT/$ZFSBOOT_GELI_POOL_NAME"
 		local key="$ZFSBOOT_GELI_KEY_FILE"
 
@@ -978,11 +978,13 @@ zfs_create_boot()
 		f_dprintf "$funcname: %s %s %s" \
 		          "ZFSBOOT_GELI_POOL_NAME=[$ZFSBOOT_GELI_POOL_NAME]" \
 		          "bootvdev=[$bootvdev]" "unenc_list=[$unenc_list]"
+		options="-o altroot=\"\$BSDINSTALL_CHROOT\""
+		options="$options -m \"/\$ZFSBOOT_GELI_POOL_NAME\""
+		options="$options -f"
 		f_eval_catch $funcname zpool "$ZPOOL_CREATE_WITH_OPTIONS" \
-		             "-o altroot=\"\$BSDINSTALL_CHROOT\"
-		              -m \"/\$ZFSBOOT_GELI_POOL_NAME\" -f" \
-		             \$ZFSBOOT_GELI_POOL_NAME \$bootvdev \
+		             "$options" \$ZFSBOOT_GELI_POOL_NAME \$bootvdev \
 		             \$unenc_list || return $FAILURE
+
 		f_dprintf "$funcname: geli_pool=[%s]" "$geli_pool"
 		f_eval_catch $funcname mkdir "$MKDIR_P" \$geli_pool/boot ||
 		             return $FAILURE
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A7DF3606-B33E-4117-A1DB-FE759E0A0E5F>