Re: [IMPORT] bsdconfig(8)

2012-07-14 Thread Bruce Cran

On 14/07/2012 03:48, Devin Teske wrote:

I'm [re-]announcing that (after much delay from the first announcement) that I 
am finally importing bsdconfig(8) into HEAD.


I've noticed a couple of issues:

The welcome page mentions setting the root password and the time zone, 
but bsdinstall will have already done that.


...look at the 'Packages' item in this menu. and on the main page - 
Most importantly, you can use the Packages utility... - I don't see a 
Packages entry in the menu.


--
Bruce Cran
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: [IMPORT] bsdconfig(8)

2012-07-14 Thread Devin Teske

On Jul 14, 2012, at 2:34 AM, Bruce Cran wrote:

 On 14/07/2012 03:48, Devin Teske wrote:
 I'm [re-]announcing that (after much delay from the first announcement) that 
 I am finally importing bsdconfig(8) into HEAD.
 
 I've noticed a couple of issues:
 
 The welcome page mentions setting the root password and the time zone, but 
 bsdinstall will have already done that.
 

The goal is to have bsdinstall drop those functionalities and instead link to 
bsdconfig.


 ...look at the 'Packages' item in this menu. and on the main page - Most 
 importantly, you can use the Packages utility... - I don't see a Packages 
 entry in the menu.
 

This will be added before MFC and before switching WITH_BSDCONFIG to 
WITHOUT_BSDCONFIG.

bsdconfig needs to replicate package installation because sysinstall had it… 
but bsdconfig is going to use pkgng instead of the legacy tools. This will 
greatly improve the abilities of the tool (you'll be able to perform remote 
package queries, etc. -- something you couldn't ever do in sysinstall).

However, in order to build a more full-and-complete package management tool 
based on pkgng, we needed the help of bapt (and he's agreed to help -- later). 
Right now, bsdconfig and pkgng are maturing side-by-side without knowledge of 
each other. As they both slow down a bit, integration becomes a closer reality 
and less of a moving target.
-- 
Devin

_
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.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: [IMPORT] bsdconfig(8)

2012-07-14 Thread Bruce Cran

On 14/07/2012 20:49, Devin Teske wrote:

The goal is to have bsdinstall drop those functionalities and instead link to 
bsdconfig.


Won't that mean it'll be possible to end up with an installation without 
a root password set?


--
Bruce Cran
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: [IMPORT] bsdconfig(8)

2012-07-14 Thread Devin Teske

On Jul 14, 2012, at 1:06 PM, Bruce Cran wrote:

 On 14/07/2012 20:49, Devin Teske wrote:
 The goal is to have bsdinstall drop those functionalities and instead link 
 to bsdconfig.
 
 Won't that mean it'll be possible to end up with an installation without a 
 root password set?
 

No.

The implication is that bsdconfig and bsdinstall will forever live side-by-side 
once linked together. That includes having bsdconfig live on the installation 
media so that bsdinstall can utilize it during the installation to (among other 
things) set the root password.
-- 
Devin

_
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.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: [IMPORT] bsdconfig(8)

2012-07-14 Thread Bruce Cran

On 14/07/2012 21:17, Devin Teske wrote:

The implication is that bsdconfig and bsdinstall will forever live side-by-side 
once linked together. That includes having bsdconfig live on the installation 
media so that bsdinstall can utilize it during the installation to (among other 
things) set the root password.


Doesn't that mean that bsdconfig would be invoked as bsdconfig 
password which would bypass the welcome screen and so by the time the 
user does see it the root password (and timezone) will have been set?


--
Bruce Cran
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: [IMPORT] bsdconfig(8)

2012-07-14 Thread Devin Teske

On Jul 14, 2012, at 1:52 PM, Bruce Cran wrote:

 On 14/07/2012 21:17, Devin Teske wrote:
 The implication is that bsdconfig and bsdinstall will forever live 
 side-by-side once linked together. That includes having bsdconfig live on 
 the installation media so that bsdinstall can utilize it during the 
 installation to (among other things) set the root password.
 
 Doesn't that mean that bsdconfig would be invoked as bsdconfig password 
 which would bypass the welcome screen and so by the time the user does see it 
 the root password (and timezone) will have been set?
 

No.

In 8.x, when you're performing the guided install, will prompt you to set the 
root password among many other things. At the very end, it prompts you as to 
whether you'd like to visit the configuration menu one more time.

In 9.x and higher, bsdinstall (taking the place of sysinstall) in a similar 
manner asks you to set the root password among many other things, but does not 
ask you if you'd like to visit the configuration menu one more time (because 
there isn't one).

So think of it this way… bsdinstall has these functionalities but no menu to 
invoke them.

By removing these functionalities from bsdinstall and instead using bsdconfig 
for these functionalities, the scenario now becomes…

bsdinstall asks to set the root password (by either executing bsdconfig 
password -- in which a transition is only noticeable because the --backtitle 
changes from FreeBSD Installer to bsdconfig -- or bsdinstall could instead 
include /usr/libexec/bsdconfig/040.password/include/password.subr and call the 
f_dialog_input_password() function where it can control --backtitle to make the 
usage even more seemless; making bsdconfig's functionality look like 
bsdinstall's). After asking to set the root password, bsdinstall can now (like 
sysinstall) ask the user if they'd like to visit the configuration menu one 
last time to make any additional changes (and bsdconfig -- no arguments -- 
would provide that menu).
-- 
Devin

_
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.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: [IMPORT] bsdconfig(8)

2012-07-14 Thread Bruce Cran

On 14/07/2012 22:07, Devin Teske wrote:

bsdinstall asks to set the root password (by either executing bsdconfig password -- in which a 
transition is only noticeable because the --backtitle changes from FreeBSD Installer to 
bsdconfig -- or bsdinstall could instead include 
/usr/libexec/bsdconfig/040.password/include/password.subr and call the f_dialog_input_password() function 
where it can control --backtitle to make the usage even more seemless; making bsdconfig's functionality look 
like bsdinstall's). After asking to set the root password, bsdinstall can now (like sysinstall) ask the user 
if they'd like to visit the configuration menu one last time to make any additional changes (and bsdconfig -- 
no arguments -- would provide that menu).


You forgot to explain the 'express' mode that bypasses the bsdconfig 
password step.


--
Bruce Cran
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: [IMPORT] bsdconfig(8)

2012-07-14 Thread Devin Teske

On Jul 14, 2012, at 2:46 PM, Bruce Cran wrote:

 On 14/07/2012 22:07, Devin Teske wrote:
 bsdinstall asks to set the root password (by either executing bsdconfig 
 password -- in which a transition is only noticeable because the 
 --backtitle changes from FreeBSD Installer to bsdconfig -- or bsdinstall 
 could instead include 
 /usr/libexec/bsdconfig/040.password/include/password.subr and call the 
 f_dialog_input_password() function where it can control --backtitle to make 
 the usage even more seemless; making bsdconfig's functionality look like 
 bsdinstall's). After asking to set the root password, bsdinstall can now 
 (like sysinstall) ask the user if they'd like to visit the configuration 
 menu one last time to make any additional changes (and bsdconfig -- no 
 arguments -- would provide that menu).
 
 You forgot to explain the 'express' mode that bypasses the bsdconfig 
 password step.
 

Did I? When one starts discussing 'Express Install', we're clearly in the realm 
of bsdinstall, not bsdconfig.

Like you stated, in that case bsdinstall would not use bsdconfig.
-- 
Devin

_
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.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: [IMPORT] bsdconfig(8)

2012-07-14 Thread Bruce Cran

On 14/07/2012 22:58, Devin Teske wrote:

Did I? When one starts discussing 'Express Install', we're clearly in the realm 
of bsdinstall, not bsdconfig.

Like you stated, in that case bsdinstall would not use bsdconfig.


I'm getting really confused here. Either bsdconfig password gets run 
before the post-install configuration menu is shown and therefore the 
text saying to set the root password in the welcome screen is 
unnecessary, or it doesn't get run and it's possible to quit bsdconfig 
without setting the root password.


--
Bruce Cran
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: [IMPORT] bsdconfig(8)

2012-07-14 Thread Devin Teske

On Jul 14, 2012, at 3:32 PM, Bruce Cran wrote:

 On 14/07/2012 22:58, Devin Teske wrote:
 Did I? When one starts discussing 'Express Install', we're clearly in the 
 realm of bsdinstall, not bsdconfig.
 
 Like you stated, in that case bsdinstall would not use bsdconfig.
 
 I'm getting really confused here. Either bsdconfig password gets run before 
 the post-install configuration menu is shown and therefore the text saying to 
 set the root password in the welcome screen is unnecessary, or it doesn't get 
 run and it's possible to quit bsdconfig without setting the root password.
 

Ok, it's more clear to me that the concern is with the welcome screen.

1. The welcome screen _text_ was ripped straight from sysinstall except with 
one difference… s/Pascal/Firefox/ (updating it for the current generations).

2. Currently this text is shoved in your face but it won't always be. The text 
will be moved to a Help screen.

So, in a way you're absolutely right… you've highlighted a conundrum (the 
welcome screen contains text which is not suitable for a welcome screen) 
because bsdinstall did something differently than sysinstall in this one case  
(reasons below; solution above -- get rid of the welcome screen).

The reason why we (Ron and I) chose to not implement the help-text in the same 
way that sysinstall does (go to the Configure top-level menu and then press 
F1) is that bsdconfig strives to be compatible with both dialog(1) and 
[purported drop-in replacement] Xdialog(1) -- and the latter doesn't support 
hooking into F1.

However, it's agreed that the welcome screen is not the right way to 
re-implement the configure.help file from sysinstall (actually rescuing _all_ 
of the *.help files from the clutches of the Attic -- further 
internationalizing them in the process too).

The envisioned construct right now is to add a third button labeled Help. 
This can be done in both dialog(1) and Xdialog(1) (see bsdconfig 
startup_rcconf and the Details button -- except instead of dangling a menu 
off of it, it will produce a box with the desired help-text.

Of course, making this scalable and usable is a challenge so we haven't yet 
migrated away from the welcome screen before the import to HEAD.

It will be dealt with before MFC and also before WITH_BSDCONFIG becomes 
WITHOUT_BSDCONFIG.
-- 
Devin

_
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.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org