util-vserver.git
17 years agoTag as 0.30.211. release-0.30.211
Daniel Hokka Zakrisson [Sat, 7 Oct 2006 18:14:37 +0000]
Tag as 0.30.211.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/tags/release-0.30.211@2355 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoVersion 0.30.211.
Daniel Hokka Zakrisson [Sat, 7 Oct 2006 18:03:17 +0000]
Version 0.30.211.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2354 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoFix typoed URL.
Daniel Hokka Zakrisson [Sat, 7 Oct 2006 12:14:14 +0000]
Fix typoed URL.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2353 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoPoint to the FAI wiki for information about how to use it.
Daniel Hokka Zakrisson [Sat, 7 Oct 2006 12:13:57 +0000]
Point to the FAI wiki for information about how to use it.
Make AUTO the default.
Move the prompt to after the trap has been setup.
Run base.__cleanup as the last step of killprocs, so the files needed are still around for the rest of the cleanup.
Use isVserverRunning so the runfile is cleaned up too.
Mount the NFS-root and the target with -o dev, to allow the device nodes.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2352 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoAdd vserver-build.fai.
Daniel Hokka Zakrisson [Wed, 4 Oct 2006 16:35:56 +0000]
Add vserver-build.fai.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2351 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoWe can't remove dev/* if we're not in the guest's root.
Daniel Hokka Zakrisson [Wed, 4 Oct 2006 16:35:26 +0000]
We can't remove dev/* if we're not in the guest's root.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2350 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoHave vuname set the context as well, so we can find it with vserver-info <name> CONTEXT.
Daniel Hokka Zakrisson [Wed, 4 Oct 2006 13:22:23 +0000]
Have vuname set the context as well, so we can find it with vserver-info <name> CONTEXT.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2349 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoRemove options that we parse ourselves, so the kernel doesn't see them (and fail).
Daniel Hokka Zakrisson [Wed, 4 Oct 2006 13:20:45 +0000]
Remove options that we parse ourselves, so the kernel doesn't see them (and fail).
Reenable MS_NODEV default.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2348 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoIf creation is failing, we want to see the errors so it's debuggable.
Daniel Hokka Zakrisson [Wed, 4 Oct 2006 12:33:10 +0000]
If creation is failing, we want to see the errors so it's debuggable.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2347 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoMake sure we're running on a sufficiently capable kernel.
Daniel Hokka Zakrisson [Tue, 3 Oct 2006 18:37:41 +0000]
Make sure we're running on a sufficiently capable kernel.
Indent killprocs correctly.
Don't require a static xid by using save_ctxinfo.
Use secure-mount instead of mount.
Set a default hostname if none was specified.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2346 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoRevert NODEV default, as it makes it impossible to mount (e.g.) a tmpfs that allows...
Daniel Hokka Zakrisson [Tue, 3 Oct 2006 15:48:03 +0000]
Revert NODEV default, as it makes it impossible to mount (e.g.) a tmpfs that allows devices.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2345 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoAdd since=... where appropriate.
Daniel Hokka Zakrisson [Tue, 3 Oct 2006 13:14:09 +0000]
Add since=... where appropriate.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2344 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoAdd FC6 distribution (doesn't work yet, but should once it's released).
Daniel Hokka Zakrisson [Tue, 3 Oct 2006 12:47:30 +0000]
Add FC6 distribution (doesn't work yet, but should once it's released).

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2343 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoMove auto-generated notice to the top.
Daniel Hokka Zakrisson [Tue, 3 Oct 2006 11:15:56 +0000]
Move auto-generated notice to the top.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2342 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoAdd the fai build method based on Sam Vilain's patch.
Daniel Hokka Zakrisson [Sun, 1 Oct 2006 17:27:50 +0000]
Add the fai build method based on Sam Vilain's patch.
(https://savannah.nongnu.org/patch/?5058)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2341 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoFix some spelling errors and update the parameter lists to be correct.
Daniel Hokka Zakrisson [Sun, 1 Oct 2006 15:55:11 +0000]
Fix some spelling errors and update the parameter lists to be correct.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2340 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoUse the older versions of these syscalls, so the utils will work on older kernels.
Daniel Hokka Zakrisson [Fri, 29 Sep 2006 22:15:14 +0000]
Use the older versions of these syscalls, so the utils will work on older kernels.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2339 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoAdd Tim Mecking's XSL stylesheet for wiki exports.
Daniel Hokka Zakrisson [Thu, 28 Sep 2006 22:39:19 +0000]
Add Tim Mecking's XSL stylesheet for wiki exports.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2338 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoCosmetic fixes to the help message.
Daniel Hokka Zakrisson [Thu, 28 Sep 2006 15:15:22 +0000]
Cosmetic fixes to the help message.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2337 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoUse a new namespace for the build process, so any mounts performed during the build...
Daniel Hokka Zakrisson [Thu, 28 Sep 2006 15:13:50 +0000]
Use a new namespace for the build process, so any mounts performed during the build will vanish when it's done.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2336 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoMake vserver ... rpm/apt-get/apt-cache/apt-config work again.
Daniel Hokka Zakrisson [Thu, 28 Sep 2006 15:10:29 +0000]
Make vserver ... rpm/apt-get/apt-cache/apt-config work again.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2335 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoAdd more forgotten files.
Daniel Hokka Zakrisson [Thu, 28 Sep 2006 15:08:25 +0000]
Add more forgotten files.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2334 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoMove flags to the same place they were when cvs2cl was used.
Daniel Hokka Zakrisson [Thu, 28 Sep 2006 15:06:59 +0000]
Move flags to the same place they were when cvs2cl was used.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2333 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoFix URLs pointing to the source code.
Daniel Hokka Zakrisson [Thu, 28 Sep 2006 15:05:46 +0000]
Fix URLs pointing to the source code.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2332 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoAdd a patch for yum 2.9.6 (for FC6).
Daniel Hokka Zakrisson [Tue, 26 Sep 2006 17:15:51 +0000]
Add a patch for yum 2.9.6 (for FC6).
Make vyum-worker use the hack configuration if the yum version is unknown (-> unsupported), rather than silently creating really strange directories.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2331 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoFix help message to correspond with reality.
Daniel Hokka Zakrisson [Tue, 26 Sep 2006 17:12:37 +0000]
Fix help message to correspond with reality.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2330 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoThis check was correct the first time, (cond)restart just calls stop and start, so...
Daniel Hokka Zakrisson [Sun, 24 Sep 2006 17:44:24 +0000]
This check was correct the first time, (cond)restart just calls stop and start, so we need not handle them specifically.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2329 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoFix wrapper prefix so error messages say chroot-sh: x.
Daniel Hokka Zakrisson [Sun, 24 Sep 2006 00:48:18 +0000]
Fix wrapper prefix so error messages say chroot-sh: x.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2328 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoMake ChangeLog prettier.
Daniel Hokka Zakrisson [Thu, 21 Sep 2006 19:44:15 +0000]
Make ChangeLog prettier.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2327 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoMake nodev the default, but don't enforce it for all mounts.
Daniel Hokka Zakrisson [Thu, 21 Sep 2006 19:43:32 +0000]
Make nodev the default, but don't enforce it for all mounts.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2326 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoAdd the reset atexit handler right after setting the terminal to raw mode, so we...
Daniel Hokka Zakrisson [Thu, 21 Sep 2006 19:42:31 +0000]
Add the reset atexit handler right after setting the terminal to raw mode, so we don't end up with a raw terminal if (e.g.) openpty fails.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2325 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoPut /bin first in the searchpath when looking for env, so we work around the /usr...
Daniel Hokka Zakrisson [Tue, 19 Sep 2006 17:29:52 +0000]
Put /bin first in the searchpath when looking for env, so we work around the /usr/bin/env-is-a-symlink issue.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2324 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoFix Makefiles and the manifest to include all the files needed.
Daniel Hokka Zakrisson [Tue, 19 Sep 2006 15:20:56 +0000]
Fix Makefiles and the manifest to include all the files needed.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2323 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoRename centos42 to the more generic centos4, and change the URLs appropriately.
Daniel Hokka Zakrisson [Mon, 18 Sep 2006 15:20:10 +0000]
Rename centos42 to the more generic centos4, and change the URLs appropriately.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2322 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoEnter the namespace earlier so testing for files (like /bin/bash, /etc/init.d/rc...
Daniel Hokka Zakrisson [Mon, 18 Sep 2006 14:57:43 +0000]
Enter the namespace earlier so testing for files (like /bin/bash, /etc/init.d/rc) works when the guest's root filesystem is mounted from its fstab.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2321 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoFix logic errors in secure-mount.
Daniel Hokka Zakrisson [Sat, 16 Sep 2006 17:26:58 +0000]
Fix logic errors in secure-mount.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2320 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoMake novlandev the default, but easily overridable for all guests.
Daniel Hokka Zakrisson [Sat, 16 Sep 2006 14:21:00 +0000]
Make novlandev the default, but easily overridable for all guests.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2319 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoAdd forgotten kernel headers (not important, but makes it easier to keep track).
Daniel Hokka Zakrisson [Sat, 16 Sep 2006 12:28:10 +0000]
Add forgotten kernel headers (not important, but makes it easier to keep track).

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2318 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years ago- Update the kernel headers to 2.0.2.1.
Daniel Hokka Zakrisson [Fri, 15 Sep 2006 21:18:21 +0000]
- Update the kernel headers to 2.0.2.1.
- Add missing flags.
- Fix the calls that got updated so they work as expected.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2317 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agomake vserver-wrapper gentoo compliant
Benedikt Boehm [Fri, 15 Sep 2006 20:15:01 +0000]
make vserver-wrapper gentoo compliant

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2316 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoadd gentoo distribution target; force sane /dev by default for template build method
Benedikt Boehm [Fri, 15 Sep 2006 19:16:48 +0000]
add gentoo distribution target; force sane /dev by default for template build method

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2315 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoenv doesn't grok --.
Daniel Hokka Zakrisson [Fri, 15 Sep 2006 15:41:26 +0000]
env doesn't grok --.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2314 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agocleanup old cvs cruft; add mkrelease script; use svn2cl instead of cvs2cl
Benedikt Boehm [Fri, 15 Sep 2006 08:31:53 +0000]
cleanup old cvs cruft; add mkrelease script; use svn2cl instead of cvs2cl

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2313 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoMake vshelper reboot/halt work correctly when CONFIG_VSERVER_LEGACY is disabled and...
Daniel Hokka Zakrisson [Fri, 15 Sep 2006 04:32:28 +0000]
Make vshelper reboot/halt work correctly when CONFIG_VSERVER_LEGACY is disabled and the helper is run synchronously.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2312 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoFix RPM-based builds on RHEL/CentOS 4.4.
Daniel Hokka Zakrisson [Wed, 13 Sep 2006 22:18:55 +0000]
Fix RPM-based builds on RHEL/CentOS 4.4.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2311 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoAdd initial environment support. Lets users work around their broken
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 18:35:57 +0000]
Add initial environment support. Lets users work around their broken
initscripts inside guests when using the sysv initstyle.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2310 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoAdd ugly hack to workaround yum's problems with file:////.
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 17:19:50 +0000]
Add ugly hack to workaround yum's problems with file:////.
(https://savannah.nongnu.org/bugs/?15517)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2309 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoAdd Herbert Pötzl's patch to support initialization scriptlets.
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 17:17:03 +0000]
Add Herbert Pötzl's patch to support initialization scriptlets.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2308 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years ago- Teach vcontext about usernames (if dietlibc is used).
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 17:09:08 +0000]
- Teach vcontext about usernames (if dietlibc is used).
- Teach capchroot about uid 0.
- Add Einitgroups.
- Specify uid 0 by default, so username lookups are avoided.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2307 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoAdd vlogin, a terminal proxy for vserver ... enter.
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 16:55:42 +0000]
Add vlogin, a terminal proxy for vserver ... enter.
(https://savannah.nongnu.org/patch/?4969)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2306 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoAdd forgotten svn:keywords.
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 16:54:03 +0000]
Add forgotten svn:keywords.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2305 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoAdd support for vserver-build -m template, which extracts tarballs.
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 16:33:59 +0000]
Add support for vserver-build -m template, which extracts tarballs.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2304 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoMake vrpm and vapt-get use vsomething.
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 12:39:00 +0000]
Make vrpm and vapt-get use vsomething.
Fix external package management so that the process is executed in
the guest's network context, in case scriptlets restart daemons.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2303 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoAdd a delete method to remove guests, based on Thomas Champagne's
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 12:29:52 +0000]
Add a delete method to remove guests, based on Thomas Champagne's
patch.
(https://savannah.nongnu.org/patch/?4899)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2302 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoApply Bastian Blank's userspace namespace cleanup patch.
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 12:21:19 +0000]
Apply Bastian Blank's userspace namespace cleanup patch.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2301 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoApply Jan Rekorajski's CPUSET patch.
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 12:16:53 +0000]
Apply Jan Rekorajski's CPUSET patch.
(http://www.paul.sladen.org/vserver/archives/200511/0245.html)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2300 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoAdd support for Fedora Core 5 and yum 2.6.
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 11:29:02 +0000]
Add support for Fedora Core 5 and yum 2.6.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2299 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoAdd support for specifying a debootstrap script.
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 11:21:38 +0000]
Add support for specifying a debootstrap script.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2298 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoUpdate to the latest version of Herbert's alternative syscall
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 11:14:56 +0000]
Update to the latest version of Herbert's alternative syscall
implementation.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2297 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoFix sys_clone usage on sparc and s390, sparc returns parent pid in
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 11:11:39 +0000]
Fix sys_clone usage on sparc and s390, sparc returns parent pid in
the child and s390 has the arguments reversed.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2296 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years ago- Fix obsolete nice usage.
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 11:09:15 +0000]
- Fix obsolete nice usage.
- Make sure the correct nice value is used, even if the parent
  process has a different one.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2295 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoFix API option parsing so oldproc and olduts are valid options
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 11:04:41 +0000]
Fix API option parsing so oldproc and olduts are valid options
(allowing for cut'n'paste from vserver-info to ./configure)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2294 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoFixes start-vservers to work on _all_ guests when --all is specified,
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 10:54:08 +0000]
Fixes start-vservers to work on _all_ guests when --all is specified,
as well as fixing the cleanup.
(https://savannah.nongnu.org/bugs/index.php?14525)
(https://savannah.nongnu.org/bugs/index.php?15632)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2293 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoApply Christian Heim's patch to deprecate the Gentoo initstyle
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 10:50:36 +0000]
Apply Christian Heim's patch to deprecate the Gentoo initstyle

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2292 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoMake fstab usage consistent, fstab gets mounted first, then
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 10:47:38 +0000]
Make fstab usage consistent, fstab gets mounted first, then
fstab.local and then fstab.remote, unmounting in the reverse order.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2291 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoFix condrestart to actually do a conditional restart
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 10:39:13 +0000]
Fix condrestart to actually do a conditional restart
(https://savannah.nongnu.org/bugs/index.php?15678)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2290 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoFix Usage: message for the main script.
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 10:34:15 +0000]
Fix Usage: message for the main script.
(https://savannah.nongnu.org/bugs/index.php?15551)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2289 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoUse $_SETATTR instead of chattr to remove the barrier.
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 10:32:43 +0000]
Use $_SETATTR instead of chattr to remove the barrier.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2288 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoFix chcontext so it passes --secure as the first argument to
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 10:30:14 +0000]
Fix chcontext so it passes --secure as the first argument to
vattribute so it doesn't override the passed caps.
(https://savannah.nongnu.org/patch/?4993)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2287 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoFix vc_set_ccaps to work the way the kernel expects it to
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 10:26:39 +0000]
Fix vc_set_ccaps to work the way the kernel expects it to
(https://savannah.nongnu.org/patch/?4968)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2286 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoApply Micah Anderson's patch fixing chcontext's man page section
Daniel Hokka Zakrisson [Tue, 12 Sep 2006 10:22:40 +0000]
Apply Micah Anderson's patch fixing chcontext's man page section
(https://savannah.nongnu.org/bugs/index.php?16083)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2285 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoremove util-vserver dir
Benedikt Boehm [Sun, 10 Sep 2006 17:26:05 +0000]
remove util-vserver dir

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2284 94cd875c-1c1d-0410-91d2-eb244daf1a30

17 years agoskip duplicate util-vserver dir
Benedikt Boehm [Sun, 10 Sep 2006 17:07:57 +0000]
skip duplicate util-vserver dir

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2283 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years agoadded yum-2.6.0-chroot.patch
Enrico Scholz [Sun, 26 Mar 2006 11:27:21 +0000]
added yum-2.6.0-chroot.patch

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2282 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years agoversion 0.30.210
Enrico Scholz [Sun, 22 Jan 2006 19:32:59 +0000]
version 0.30.210

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2280 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years agouse stdout instead of stderr for the no-compat API warnings on '--help';
Enrico Scholz [Sun, 22 Jan 2006 19:31:53 +0000]
use stdout instead of stderr for the no-compat API warnings on '--help';
else, 'make distcheck' will fail

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2279 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years agoupdated
Enrico Scholz [Sun, 22 Jan 2006 19:20:29 +0000]
updated

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2278 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years agoadded testcases for the '--enable-apis=NOLEGACY' configure switch
Enrico Scholz [Sun, 22 Jan 2006 18:24:59 +0000]
added testcases for the '--enable-apis=NOLEGACY' configure switch

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2277 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years agoadded dietlibc + glibc versions of the isnumber and sigbus tests
Enrico Scholz [Sun, 22 Jan 2006 18:24:22 +0000]
added dietlibc + glibc versions of the isnumber and sigbus tests

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2276 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years ago- declare the VC_ENABLE_API_* macros through AH_TEMPLATE()
Enrico Scholz [Sun, 22 Jan 2006 18:22:48 +0000]
- declare the VC_ENABLE_API_* macros through AH_TEMPLATE()
- provide only the v13,net APIs by default
- added support for v13obs API

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2275 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years agodo not provide Evc_new_s_context() wrapper without the required API
Enrico Scholz [Sun, 22 Jan 2006 18:20:24 +0000]
do not provide Evc_new_s_context() wrapper without the required API

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2274 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years agouse the new VC_ENABLE_API_V13OBS define
Enrico Scholz [Sun, 22 Jan 2006 18:19:33 +0000]
use the new VC_ENABLE_API_V13OBS define

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2273 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years agoadded linktime warning for vc_set_ipv4root()
Enrico Scholz [Sun, 22 Jan 2006 18:19:06 +0000]
added linktime warning for vc_set_ipv4root()

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2272 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years agosplit vc_set_sched_v13obs() into an own file
Enrico Scholz [Sun, 22 Jan 2006 18:18:28 +0000]
split vc_set_sched_v13obs() into an own file

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2271 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years agofixed compilation for disabled compat/legacy API
Enrico Scholz [Sun, 22 Jan 2006 18:17:24 +0000]
fixed compilation for disabled compat/legacy API

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2270 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years agoadded some workarounds so that it build without compat/legacy API
Enrico Scholz [Sun, 22 Jan 2006 18:15:21 +0000]
added some workarounds so that it build without compat/legacy API
resp. give out warnings explaining the situation

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2269 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years agoadded support for $(pkgcachedir)
Enrico Scholz [Sun, 22 Jan 2006 13:37:25 +0000]
added support for $(pkgcachedir)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2268 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years ago- documented /etc/vservers/.defaults/cachebase + /etc/vservers/.../cache
Enrico Scholz [Sun, 22 Jan 2006 13:36:43 +0000]
- documented /etc/vservers/.defaults/cachebase + /etc/vservers/.../cache
- documented default value of /etc/vservers/.../vdir

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2267 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years ago- do not require 'xalan' anymore by default
Enrico Scholz [Sun, 22 Jan 2006 13:12:15 +0000]
- do not require 'xalan' anymore by default
- removed 'Requires: apt'; apt-rpm is not maintained upstream anymore
- removed 'chattr' leftovers
- create the '/etc/vservers/.defaults/cachebase' symlink
- added /var/cache/vservers and the needed support
- set barrier attribute on /vservers/.pkg and /vservers/.hash
- added 'centos-release' to the list of packages in the copy-the-keys
  trigger script
- create '/vservers/.hash' and add initial configuration for it

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2266 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years ago- fixed ngnet -> non-legacy network confusion
Enrico Scholz [Sun, 22 Jan 2006 13:04:40 +0000]
- fixed ngnet -> non-legacy network confusion
- mentioned improved dlimit support

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2265 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years ago- changed the way how temporary files/directories will be created:
Enrico Scholz [Sun, 22 Jan 2006 12:36:07 +0000]
- changed the way how temporary files/directories will be created:

  * mktemp will now be called with the '-t' parameter and sometimes with
    '-p'
  * absolutes paths (e.g. '/tmp') were removed from the templates
  * with this changes, it is now possible to override the location of
    the temporary files by setting $TMPDIR. This should add a way to
    solve problems like debootstrap on non-executable tmp-directories
    (http://savannah.nongnu.org/bugs/?func=detailitem&item_id=15447)

  These changes require that 'mktemp' understands the following switches:

  * '-t'  ... Generate a path rooted in a temporary directory.
  * '-d'  ... Make a directory instead of a file.
  * '-p' ...  Use the specified directory as a prefix when generating
              the temporary filename.

  Because 'mktemp' from Debian Woody's 'debianutils_1.16.2woody1'
  supports these features every recent Linux distribution should do it
  also.

- allow to override path of the debootstrap binary with the $DEBOOTSTRAP
  environment variable

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2264 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years agochanged the way how temporary files/directories will be created:
Enrico Scholz [Sun, 22 Jan 2006 12:24:25 +0000]
changed the way how temporary files/directories will be created:

* mktemp will now be called with the '-t' parameter and sometimes with
  '-p'
* absolutes paths (e.g. '/tmp') were removed from the templates
* with this changes, it is now possible to override the location of
  the temporary files by setting $TMPDIR. This should add a way to
  solve problems like debootstrap on non-executable tmp-directories
  (http://savannah.nongnu.org/bugs/?func=detailitem&item_id=15447)

These changes require that 'mktemp' understands the following switches:

* '-t'  ... Generate a path rooted in a temporary directory.
* '-d'  ... Make a directory instead of a file.
* '-p' ...  Use the specified directory as a prefix when generating
            the temporary filename.

Because 'mktemp' from Debian Woody's 'debianutils_1.16.2woody1'
supports these features every recent Linux distribution should do it
also.

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2263 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years ago- the 'dlimit' stuff uses now a /etc/vservers/*/cache symlink pointing
Enrico Scholz [Sun, 22 Jan 2006 12:11:40 +0000]
- the 'dlimit' stuff uses now a /etc/vservers/*/cache symlink pointing
  somewhere to /var/cache
- _setSingleDiskLimit(): use one $_VDU call instead of two
- give out a warning when dlimit/ stuff is configured but no cache
  symlink is existing

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2262 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years agocreate the /etc/vservers/*/cache symlink
Enrico Scholz [Sun, 22 Jan 2006 12:09:39 +0000]
create the /etc/vservers/*/cache symlink

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2261 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years agorearranged some bits so that toplevel directory will be counted too
Enrico Scholz [Sun, 22 Jan 2006 11:56:28 +0000]
rearranged some bits so that toplevel directory will be counted too

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2260 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years agolink 'vdu' against 'libinternal.a'
Enrico Scholz [Sun, 22 Jan 2006 11:28:00 +0000]
link 'vdu' against 'libinternal.a'

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2259 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years ago- rewrote the directory traversal code to use 'EsafeChdir()' and
Enrico Scholz [Sun, 22 Jan 2006 11:27:22 +0000]
- rewrote the directory traversal code to use 'EsafeChdir()' and
  friends
- allow to specify both '--inodes' and '--space'
- use 'isNumber()'

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2258 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years agoapply new 'isNumber()' API
Enrico Scholz [Sun, 22 Jan 2006 11:25:09 +0000]
apply new 'isNumber()' API

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2257 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years agoadded __PKGCACHEDIR
Enrico Scholz [Sun, 22 Jan 2006 11:24:23 +0000]
added __PKGCACHEDIR

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2256 94cd875c-1c1d-0410-91d2-eb244daf1a30

18 years agoenhanced the isNumber() method:
Enrico Scholz [Sun, 22 Jan 2006 11:23:47 +0000]
enhanced the isNumber() method:
* now, it accepts units like 'm' or 'K'; 'isNumber()' needs now a
  third parameter telling whether to interprete the number strictly or
  whether to accept such units
* an 'isNumberUnsigned()' method was created for unsigned types; an
  'util-isnumber.hc' template file was created for this purpose
* proper tests for over/underflow were implemented

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2255 94cd875c-1c1d-0410-91d2-eb244daf1a30