| Summary: | [handbook] Precisions/caveat for 30.8 Diskless Operation | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Documentation | Reporter: | Natacha Porté <natbsd> | ||||
| Component: | Books & Articles | Assignee: | Rodrigo Osorio <rodrigo> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | CC: | allanjude, dru, rodrigo | ||||
| Priority: | --- | ||||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Natacha Porté
2016-10-03 17:08:29 UTC
Hi Natacha, (In reply to Sevan Janiyan from comment #1) derp I hit take with the intent to finish a reply later, after writing hello & realising I need some more time to write a reply because I should read the article you mention. Any way, as I've already started I'll go on. The points you raised seem valid & sensible however I've not had a chance to read the article. I would prefer to opt to direct readers to the official archives as a primary rather than walk them through the buildworld step as it saves considerable time. however it should mention the ability to use buildworld also, perhaps pointing to the necessary handbook article[1] to avoid duplicate instructions & noting a DESTDIR suffix if needed. [1] https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html Thanks Sevan for your review. I was hoping for more discussion, so I could stand more confidently behind my proposed patch. As a result it is likely not optimal, but at least it is a proposition. I added the option `-maproot=root`, removed the details of how to rebuilding the world, added a reference to the official archives as a primary mode of seeding the base filesystem, and hinted to the use of md_size for /var. The patch is against the current head of `master` branch in freebsd-doc github repository [1], but hopefully this chapter is static enough to be easily merged. [1]: https://github.com/freebsd/freebsd-doc/commit/3e755a3d2d7dff3dc3ada70588eff6953f52eb4c Created attachment 175606 [details]
Proposition of documentation improvement
(In reply to Natacha Porté from comment #3) Hi Natacha, Apologies for the delay in replying, what's the reason for specifying -maproot=root?? (In reply to Sevan Janiyan from comment #5) `-maproot=root` is needed because otherwise root on the PXE machine (NFS client) is mapped to nobody on the NFS server, which makes it impossible to execute /sbin/shutdown (and therefore switch off cleanly the PXE machine), to read /etc/spwd.db (and therefore authenticate users), and a few other useful system things. MARKED AS SPAM MARKED AS SPAM MARKED AS SPAM MARKED AS SPAM time-out, take this ticket into my basket Natacha : -maproot=root : Agree, even if is not visible, without this option you can't perform a shutdown. Nevertheless reboot works. The part about the md allocation should be rephrased : by default the size should be expressed in 512 bytes unit or a unit can be at the end of the numbers. Maybe you can just reuse the manpage sentence. 10240 means 5m Also the manpage share/man/man8/diskless.8 needs to be updates, at least for the file size :) The diskless scripts create memory file systems to hold the overridden directories. Only a 2MB partition is created by default, which may not be sufficient for your purposes. To override this, you can create the file /conf/base/etc/md_size containing the size, in 512 byte sectors, of the memory disk to create for that directory. Natacha, I create a review with your patch, and including the modifications I suggest, let me know if it's fine for you or if it requires changes. (In reply to Rodrigo Osorio from comment #13) https://reviews.freebsd.org/D14336 A commit references this bug: Author: rodrigo Date: Mon Mar 5 15:50:48 UTC 2018 New revision: 51461 URL: https://svnweb.freebsd.org/changeset/doc/51461 Log: update/correct the Handbook Diskless operations chapter - Add the -maproot=root to the NFS export configuration - Mention base archive from the ftp server as an alternative way to install the base system - Fix the <command> usage - Add details about how to use md_size files to increase the default mfs size for /var and /etc PR: 213175 Submitted by: Natacha Porte <natbsd@instinctive.eu> Reviewed by: sevan bcr ian Approved by: ian sevan Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D14336 Changes: head/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml committed with minor changes, tanks |