Change conffiles and fix /dev bug in turnup.
authorJohn Bowler <jbowler@nslu2-linux.org>
Wed, 15 Jun 2005 14:28:12 +0000 (14:28 +0000)
committerJohn Bowler <jbowler@nslu2-linux.org>
Wed, 15 Jun 2005 14:28:12 +0000 (14:28 +0000)
BKrev: 42b03afcRUFZrFbVGDwsxNY2C-eKfA

packages/openslug-init/openslug-init-0.10/conffiles
packages/openslug-init/openslug-init-0.10/turnup
packages/openslug-init/openslug-init_0.10.bb

index e69de29..5f05a49 100644 (file)
@@ -0,0 +1,49 @@
+# conffiles
+# Known OpenSlug configuration files.  These files are preserved on
+# a flash upgrade.  Other configuration files, found from:
+#
+#    /usr/lib/ipkg/*.conffiles
+#    /etc/*.conf
+#
+# are preserved too with an operation of 'diff' if they have been
+# changed since /etc/.configured was created.
+#
+# Lines starting with # are comments, other lines have
+# two fields:
+#
+# operation file 
+#
+# The file must *NOT* have a leading /
+#
+# operation may be:
+#   ignore    Do not preserve this file
+#   preserve  Preserve this file unconditionally
+#   diff      Compare file with the new version, ask if different
+#
+preserve        linuxrc
+preserve       etc/.configured
+preserve       etc/default/sysconf
+diff           etc/default/conffiles
+diff           etc/default/devpts
+diff           etc/default/rcS
+diff           etc/default/usbd
+preserve       etc/profile
+preserve       etc/hostname
+preserve       etc/hosts
+preserve       etc/defaultdomain
+preserve       etc/resolv.conf
+preserve       etc/syslog.conf
+preserve       etc/motd
+preserve       etc/network/interfaces
+preserve       etc/dropbear/dropbear_rsa_host_key
+preserve       etc/dropbear/dropbear_dss_host_key
+preserve       etc/passwd
+preserve       etc/shadow
+preserve       etc/group
+preserve       etc/gshadow
+preserve       etc/ntp.drift
+preserve       etc/timezone
+preserve       etc/localtime
+preserve       etc/TZ
+ignore         etc/modules.conf
+ignore         etc/modules
index c6d422a..ade85f0 100644 (file)
@@ -121,17 +121,23 @@ copy_rootfs() {
 #  In flash file systems /dev is in ramfs, in disk systems /dev
 #  can be populated permanently.  This is done by creating a
 #  single entry '.noram' in /dev - the devices init script will
-#  then populate the directory.  The passed in device_table is
-#  not currently used.
+#  then populate the directory without overmounting it.  The
+#  devices in the passed in device table are also created, but
+#  note that this is insufficient, /etc/init.d/devices must
+#  also run.
 setup_dev() {
        test -n "$1" -a -d "$1"/dev -a -r "$2" || {
                echo "turnup: setup_dev($1,$2): expected a directory and a file" >&2
                return 1
        }
-       # at present the device_table is not used because it is incomplete,
-       # /etc/init.d/devices adds extra stuff, it seems fine to leave
-       # things this way
        echo "turnup: initialising dev file system" >&2
+       # init tries to open the following devices:
+       #       /dev/console
+       #       /dev/tty0
+       #       /dev/null
+       # syslog, and maybe other things, only work if fd 1 is valid, therefore
+       # we must create these devices here...
+       makedevs --root="$1" --devtable="$2"
        :>"$1"/dev/.noram
        return 0
 }
index ee619f0..76bd007 100644 (file)
@@ -3,7 +3,7 @@ SECTION = "console/network"
 LICENSE = "GPL"
 DEPENDS = "base-files devio"
 RDEPENDS = "busybox devio"
-PR = "r30"
+PR = "r31"
 
 SRC_URI = "file://linuxrc \
           file://boot/flash \