From 6b9a031ce4df3d911ed8bf07ce753cf306c0286f Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 06 Jan 2012 23:45:57 -0500 Subject: Add filesystem snapshot section to TBB notes. --- (limited to 'temporary-bootstrap-builder-setup.txt') diff --git a/temporary-bootstrap-builder-setup.txt b/temporary-bootstrap-builder-setup.txt index 9a9403f..fb7658e 100644 --- a/temporary-bootstrap-builder-setup.txt +++ b/temporary-bootstrap-builder-setup.txt @@ -165,6 +165,25 @@ Make and change to a directory for package source code. $ mkdir -v ${BBL}/src $ cd ${BBL}/src +At this point and after every milestone (maybe after each package installation), +I recommend you create a snapshot of the filesystem. To do so, first exit the +shell environment of user 'bbl'. + $ exit +As the superuser, unmount the filesystem. + # umount fs +Make a copy of the filesystem. Replace '' with something to +identify the milestone (for example, at this point I named my snapshot image +'fs.01-fs-hier' to note that it was the first snapshot and that I just finished +making the filesystem hierarchy). + $ cp -p fs fs. +As the superuser, mount the filesystem again. + # mount -o loop fs fsmnt +Log in as user 'bbl' and return to the src directory in the filesystem. + $ su - bbl + $ cd ${BBL}/src +Now, if something goes wrong, you can revert to a previous filesystem image by +going through this section and swapping the arguments to 'cp'. + Install Linux's headers for use by EGLIBC. $ cp -pR ${BBL}/../../src/linux-3.1.6 . $ cd linux-3.1.6 -- cgit v0.9.1