Browse Source

util-vserver: Fixed by adding the code to populate etc/vservers/.defaults/dev

legacy/0.1-legacy
Alejandro Mery 16 years ago
parent
commit
73c8fb5403
2 changed files with 42 additions and 1 deletions
  1. +12
    -1
      pkg_util-vserver.conf
  2. +30
    -0
      pkgs/util-vserver.device_nodes.txt

+ 12
- 1
pkg_util-vserver.conf

@ -15,6 +15,17 @@
. $confdir/$pkg.conf . $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 var_append patchfiles ' ' $base/target/$target/patches/$pkg.patch

+ 30
- 0
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

Loading…
Cancel
Save