From 73c8fb540362d3669eb847dc5c5e8d7bc1d4b5e6 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Thu, 31 Jul 2008 01:50:48 +0300 Subject: [PATCH] util-vserver: Fixed by adding the code to populate etc/vservers/.defaults/dev --- pkg_util-vserver.conf | 13 ++++++++++++- pkgs/util-vserver.device_nodes.txt | 30 ++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 pkgs/util-vserver.device_nodes.txt diff --git a/pkg_util-vserver.conf b/pkg_util-vserver.conf index 76447f8..13f1382 100644 --- a/pkg_util-vserver.conf +++ b/pkg_util-vserver.conf @@ -15,6 +15,17 @@ . $confdir/$pkg.conf -hook_add postmake 5 "overlay_apply '$base/target/$target/pkgs/$pkg'" +sheba_util_vserver_populate() +{ + local udevconfdir=$( pkgdesc confdir udev ) + local devdir="$root$sysconfdir/vservers/.defaults/dev" + local targetdir="$base/target/$target" + + overlay_apply "$targetdir/pkgs/$pkg" + + mkdir -p "$devdir" + "$udevconfdir/create_nodes.sh" "$devdir" < $targetdir/pkgs/util-vserver.device_nodes.txt +} +hook_add postmake 5 "sheba_util_vserver_populate" var_append patchfiles ' ' $base/target/$target/patches/$pkg.patch diff --git a/pkgs/util-vserver.device_nodes.txt b/pkgs/util-vserver.device_nodes.txt new file mode 100644 index 0000000..8c6df3c --- /dev/null +++ b/pkgs/util-vserver.device_nodes.txt @@ -0,0 +1,30 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: target/sheba/pkgs/util-vserver.device_nodes.txt +# Copyright (C) 2008 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +c console 600 root root 5 1 +l core 777 root root /proc/kcore +l fd 777 root root /proc/self/fd +c full 622 root root 1 7 +s log 666 root root +d net 2755 root root +c null 666 root root 1 3 +c ptmx 666 root tty 5 2 +d pts 2755 root root +d shm 3777 root root +l stderr 777 root root /proc/self/fd/2 +l stdin 777 root root /proc/self/fd/0 +l stdout 777 root root /proc/self/fd/1 +c tty 666 root tty 5 0 +c urandom 644 root root 1 9 +c zero 666 root root 1 5