Difference between revisions of "Simplified remaster 3.8.2"
From Knoppix Documentation Wiki
m |
(longer path names) |
||
| Line 3: | Line 3: | ||
Based on the [http://www.knoppix.net/wiki/Knoppix_Remastering_Howto Knoppix Remastering Howto] | Based on the [http://www.knoppix.net/wiki/Knoppix_Remastering_Howto Knoppix Remastering Howto] | ||
| − | This remastering assumes that you are running Knoppix 3.8.2 and have | + | This remastering assumes that you are running Knoppix 3.8.2 and have at least 5 GB of free space on a partition at $knx_dev which will be mounted at $knx_mnt. |
Boot from the ''Knoppix CD'' | Boot from the ''Knoppix CD'' | ||
| Line 22: | Line 22: | ||
# make two target folders: one for the course and one for the final master CD | # make two target folders: one for the course and one for the final master CD | ||
| − | mkdir -p {master,source}/KNOPPIX | + | mkdir -p $knx_mnt/{master,source}/KNOPPIX |
# Now, copy the KNOPPIX files to your source directory : | # Now, copy the KNOPPIX files to your source directory : | ||
| − | cp -a /KNOPPIX/* source/KNOPPIX | + | cp -a /KNOPPIX/* $knx_mnt/source/KNOPPIX |
find /cdrom/ -size -10000k -type f | | find /cdrom/ -size -10000k -type f | | ||
| − | xargs cp -a --parents --target-directory=knx/master/ | + | xargs cp -a --parents --target-directory=$knx_mnt/knx/master/ |
# setup some preliminary files | # setup some preliminary files | ||
# /etc/fstab | # /etc/fstab | ||
| − | grep -e '\/proc' -e '\/sys' /etc/fstab > source/etc/fstab | + | grep -e '\/proc' -e '\/sys' /etc/fstab > $knx_mnt/knx/source/KNOPPIX/etc/fstab |
| + | cat $knx_mnt/knx/source/KNOPPIX/etc/fstab | ||
# /etc/resolv.conf | # /etc/resolv.conf | ||
| − | cat /etc/resolv.conf > source/etc/resolv.conf | + | cat /etc/resolv.conf > $knx_mnt/knx/source/KNOPPIX/etc/dhcpc/resolv.conf |
| + | cat $knx_mnt/knx/source/KNOPPIX/etc/dhcpc/resolv.conf | ||
# "chroot" into the copied KNOPPIX | # "chroot" into the copied KNOPPIX | ||
| − | chroot source/KNOPPIX</nowiki></pre> | + | chroot $knx_mnt/knx/source/KNOPPIX |
| + | </nowiki></pre> | ||
Revision as of 19:06, 30 July 2005
Setting up for Remastering
Based on the Knoppix Remastering Howto
This remastering assumes that you are running Knoppix 3.8.2 and have at least 5 GB of free space on a partition at $knx_dev which will be mounted at $knx_mnt.
Boot from the Knoppix CD
- boot: knoppix 3
knx_dev=/dev/hda3
knx_mnt=/mnt/hda3
# Mount the partition:
mount -o rw,dev $knx_dev $knx_mnt
# Create a root directory to work in -- if you put all your files here it will be easy to clean up
mkdir $knx_mnt/knx
cd $knx_mnt/knx
# make a 1 GB RAM swapfile
dd if=/dev/zero of=swapfile bs=1M count=1000
mkswap swapfile
swapon swapfile
# make two target folders: one for the course and one for the final master CD
mkdir -p $knx_mnt/{master,source}/KNOPPIX
# Now, copy the KNOPPIX files to your source directory :
cp -a /KNOPPIX/* $knx_mnt/source/KNOPPIX
find /cdrom/ -size -10000k -type f |
xargs cp -a --parents --target-directory=$knx_mnt/knx/master/
# setup some preliminary files
# /etc/fstab
grep -e '\/proc' -e '\/sys' /etc/fstab > $knx_mnt/knx/source/KNOPPIX/etc/fstab
cat $knx_mnt/knx/source/KNOPPIX/etc/fstab
# /etc/resolv.conf
cat /etc/resolv.conf > $knx_mnt/knx/source/KNOPPIX/etc/dhcpc/resolv.conf
cat $knx_mnt/knx/source/KNOPPIX/etc/dhcpc/resolv.conf
# "chroot" into the copied KNOPPIX
chroot $knx_mnt/knx/source/KNOPPIX