Package: xen-tools
Severity: wishlist
Tags: patch

Hi! 

One thing I noticed using xen-tools is that there are always some files
that I feel should be copied to the target system and are not copied by
default... I can imagine that the set of files that should be copied by
default is different for each administrator, so I propose to support
something like useradd's /etc/skel dir to initialize the target file
system...

This is a minimal patch to the 60-copy-host-files hook that does what I
propose, but it could also be nice to be able to pass the name of the skel
directory as an option, or in the configuration rather than having it as
fixed... (I can prepare a patch for that too, if you think it's interesting
enough to get included)

--- 60-copy-host-files.orig     2006-04-17 14:47:58.220982034 +0200
+++ 60-copy-host-files  2006-04-17 14:51:46.457332815 +0200
@@ -29,3 +29,6 @@
     DEBIAN_FRONTEND=noninteractive chroot ${prefix} /usr/bin/apt-get --yes 
--force-yes install sudo
 fi

+if [ -d /etc/virtskel ]; then
+    cp -RL /etc/virtskel/* ${prefix}/
+fi


Thanks!

Guido


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to