util-vserver: changed to install the nodes list in $docdir/nodes.txt for reference
[sheba.git] / pkg_util-vserver.conf
blob546069054d1707019660be5c16986f8f8094ef88
1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # Filename: target/sheba/pkg_util-vserver.conf
5 # Copyright (C) 2007 - 2008 The OpenSDE Project
6 # Copyright (C) 2004 - 2006 Alejandro Mery
8 # More information can be found in the files COPYING and README.
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- SDE-COPYRIGHT-NOTE-END ---
16 . $confdir/$pkg.conf
18 sheba_util_vserver_populate()
20         local udevconfdir=$( pkgdesc confdir udev )
21         local devdir="$root$sysconfdir/vservers/.defaults/dev"
22         local node=
24         overlay_apply "$base/target/$target/pkgs/$pkg"
26         mkdir -p "$devdir"
27         "$udevconfdir/create_nodes.sh" "$devdir" < $root$docdir/nodes.txt |
28                         while read node; do
29                 add_flist "$node"
30         done
32 hook_add postmake 5 "sheba_util_vserver_populate"
34 var_append patchfiles ' ' $base/target/$target/patches/$pkg.patch