This is the official way, needs no own parsing (therefore less
fault-prone) and shorter. Also fixes Debian bug #560011 -- the manual
parsing did not catch all syntax variants.
Also add some comments before /etc/apt/sources.list generation in the
Ubuntu hooks.
Temporarily use resolv.conf from dom0 when chrooting into domU,
to be able to run apt-get and yum inside chroot.
This permits to use different nameservers in domU, and does not
break install nor offline update from dom0.
1. Copy "resolv.conf" before running apt-get update / yum update.
Without this DNS is probably not available/working.
2. Copy /etc/sudoers from the host, if we're installing sudo.
Source common.sh from the parent directory if the global installation
isn't found.
This allows "make test" to succeed *before* the tools are installed.
Added to the repository. These are almost straight copies of the
previous hook scripts except they are now Debian-specific.
They also each log their start and finish and optional information
via the use of the ../common.sh file.
No major changes anticipated.