Date: Fri, 09 Apr 2010 11:23:18 +0200 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: Garrett Cooper <yanefbsd@gmail.com> Cc: Bruce Cran <bruce@cran.org.uk>, John Baldwin <jhb@freebsd.org>, freebsd-geom@freebsd.org, Teske <dteske@vicor.com>, Randi Harper <randi@freebsd.org>, freebsd-current@freebsd.org, "Andrey V. Elsukov" <bu7cher@yandex.ru>, Alexander Leidinger <Alexander@leidinger.net> Subject: Re: [RFC] Rewriting sade(8) Message-ID: <86fx356ku1.fsf@ds4.des.no> In-Reply-To: <i2h7d6fde3d1004081231vfa329175kaefc50cb82e0ab06@mail.gmail.com> (Garrett Cooper's message of "Thu, 8 Apr 2010 12:31:51 -0700") References: <55861270658151@web135.yandex.ru> <20100408103809.13496s9i6ny03ocg@webmail.leidinger.net> <867hoi8gbl.fsf@ds4.des.no> <201004080849.12151.jhb@freebsd.org> <86r5mqt4aj.fsf@ds4.des.no> <u2w7d6fde3d1004081103o62126620t7d1ea811255c8d66@mail.gmail.com> <86sk75ol54.fsf@ds4.des.no> <i2h7d6fde3d1004081231vfa329175kaefc50cb82e0ab06@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Garrett Cooper <yanefbsd@gmail.com> writes: > Dag-Erling Sm=C3=B8rgrav <des@des.no> writes: > > Garrett Cooper <yanefbsd@gmail.com> writes: > > > Dag-Erling Sm=C3=B8rgrav <des@des.no> writes: > > > > [restored relevant context which was removed earlier in the thread] > > > > ...which is exactly what I said - but in the sysinstall case, you m= ay > > > > want to ask some additional questions ("are you sure you want to pr= oceed > > > > without a swap partition?") or place some additional constraints (s= uch > > > > as "don't allow the user to mount something on top of /mnt or /resc= ue"), > > > > and sysinstall needs to know the outcome. > > > If the user shoots him or herself in the foot, that's their own > > > problem. > > That kind of attitude is why people choose Linux over FreeBSD... > Where do you draw the line though? /media, /libexec, /proc, /sys, etc? > I think it's better to educate users than build in more complexity to > the install application. I draw the line at mounting something - anything - on top of directories that contain files that are critical to sysinstall's operation. IIRC, /mnt is where the installation CD is mounted. In sysinstall mode, sade's role is to 1) make sure that something sensible is mounted in the location where sysinstall is going to install the OS, 2) assist the user in making the correct disk, slice, partition or what-have-you bootable, 3) within reasonable limits, prevent the user from doing something that will break sysinstall, and 4) optionally allow the user to prepare additional filesystems that sysinstall doesn't care about (e.g. /usr/obj), as long as this does not conflict with 3). I think the easiest way to achieve this is for sysinstall to provide an empty directory (e.g. /inst) and have sade operate with that directory as root, so what the user sees is how things will look when the system reboots after installation; when the user asks sade to create /usr/obj, sade actually creates /inst/usr/obj. Last but not least, sade should report what it did to sysinstall - perhaps in fstab format, since sysinstall needs to populate (/inst)/etc/fstab anyway. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86fx356ku1.fsf>