From: Owen Synge Sent: 14 January 2006 10:36
#!/bin/sh # clone debian system # References http://www.inittab.de/manuals/debootstrap.html # http://66.102.9.104/search?q=cache:XStg8MdXobEJ:hacking.dk/talks/debian/tips... # # TARGET_DIR=/mnt/hda9/ford_image DEBIAN_MIRROR_HOST=192.168.0.12 DEBIAN_MIRROR_PORT=9999
DEBIAN_APT_SOURCES=sources.list DEBIAN_APT_INTERFACES=autoinstaller.etc.network.interfaces DEBIAN_FSTAB=autoinstaller.etc.fstab debootstrap sarge $TARGET_DIR http://$%7BDEBIAN_MIRROR_HOST%7D:$%7BDEBIAN_MIRROR_PORT%7D/main dpkg --get-selections > ${TARGET_DIR}/autoinstall_dpkg.db debconf-get-selections > ${TARGET_DIR}/autoinstall_debconf.db cp ${DEBIAN_APT_SOURCES} ${TARGET_DIR}/etc/apt/sources.list cp ${DEBIAN_APT_INTERFACES} ${TARGET_DIR}/etc/network/interfaces cp ${DEBIAN_FSTAB} ${TARGET_DIR}/etc/fstab chroot ${TARGET_DIR} apt-get update
#base-config
#Man kan bruge sin backup med følgende kommandoer:
debconf-set-selections < ${TARGET_DIR}/autoinstall_debconf.db dpkg --set-selections < ${TARGET_DIR}/autoinstall_dpkg.db apt-get dselect-upgrade apt-get -u dist-upgrade
Cheers Owen, interesting use of debconf (now where's my Danish/English dictionary :o) )
Regards,
Keith ____________ 'The people who get on in this world are the people who get up and look for the circumstances they want, - and, if they can't find them, make them.' - - George Bernard Shaw
On Mon, 16 Jan 2006 09:13:03 -0000 "Keith Watson" keith.watson@kewill.com wrote:
From: Owen Synge Sent: 14 January 2006 10:36
#!/bin/sh # clone debian system # References http://www.inittab.de/manuals/debootstrap.html # http://66.102.9.104/search?q=cache:XStg8MdXobEJ:hacking.dk/talks/debian/tips... # # TARGET_DIR=/mnt/hda9/ford_image DEBIAN_MIRROR_HOST=192.168.0.12 DEBIAN_MIRROR_PORT=9999
DEBIAN_APT_SOURCES=sources.list DEBIAN_APT_INTERFACES=autoinstaller.etc.network.interfaces DEBIAN_FSTAB=autoinstaller.etc.fstab debootstrap sarge $TARGET_DIR http://$%7BDEBIAN_MIRROR_HOST%7D:$%7BDEBIAN_MIRROR_PORT%7D/main dpkg --get-selections > ${TARGET_DIR}/autoinstall_dpkg.db debconf-get-selections > ${TARGET_DIR}/autoinstall_debconf.db cp ${DEBIAN_APT_SOURCES} ${TARGET_DIR}/etc/apt/sources.list cp ${DEBIAN_APT_INTERFACES} ${TARGET_DIR}/etc/network/interfaces cp ${DEBIAN_FSTAB} ${TARGET_DIR}/etc/fstab chroot ${TARGET_DIR} apt-get update
#base-config
#Man kan bruge sin backup med følgende kommandoer:
debconf-set-selections < ${TARGET_DIR}/autoinstall_debconf.db dpkg --set-selections < ${TARGET_DIR}/autoinstall_dpkg.db apt-get dselect-upgrade apt-get -u dist-upgrade
Cheers Owen, interesting use of debconf (now where's my Danish/English dictionary :o) )
Regards,
Keith
These days I dont often install a deb box without preseeding debconf otherwise it takes to long answering the same old questions
Regards
Owen