initrd: /usr/share/initrd/sbin wasn't being created. Add it via mtree(8).
authorSascha Wildner <saw@online.de>
Sun, 4 Jul 2010 01:45:25 +0000 (03:45 +0200)
committerSascha Wildner <saw@online.de>
Sun, 4 Jul 2010 01:45:25 +0000 (03:45 +0200)
This led to oinit being installed as a file named 'sbin'. Remove this
file via etc/Makefile (during 'make upgrade') so that with the next
upgrade the file is installed correctly.

etc/Makefile
etc/mtree/BSD.usr.dist

index 9fb8f33..c51e3c9 100644 (file)
@@ -135,7 +135,7 @@ preupgrade:
 
 upgrade_etc:   preupgrade remove-obsolete-files
        # files that should be dirs (not possible with Makefile_upgrade.inc)
-.for f in usr/include/dev/misc/ppi
+.for f in usr/include/dev/misc/ppi usr/share/initrd/sbin
        [ -d ${DESTDIR}/${f} ] || rm -f ${DESTDIR}/${f}
 .endfor
 .if !defined(BINARY_UPGRADE) # binary upgrade just copies these files
index 2867a45..b128b2f 100644 (file)
         info
         ..
         initrd
+            bin
+            ..
             etc
             ..
-            bin
+            sbin
             ..
         ..
         installer