[arch-commits] Commit in udev/trunk (udev.install)

2012-03-01 Thread Tom Gundersen
Date: Thursday, March 1, 2012 @ 12:57:23
  Author: tomegun
Revision: 151729

upgpkg: udev 181-3

fix install message

Modified:
  udev/trunk/udev.install

--+
 udev.install |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: udev.install
===
--- udev.install2012-03-01 17:33:47 UTC (rev 151728)
+++ udev.install2012-03-01 17:57:23 UTC (rev 151729)
@@ -2,7 +2,7 @@
 # arg 2:  the old package version
 
 post_upgrade() {
-  if [ "$(vercmp $2 181-2)" -lt 0 ]; then
+  if [ "$(vercmp $2 181-3)" -lt 0 ]; then
 echo "udev changes:"
 if [ "$(vercmp $2 168)" -lt 0 ]; then
   echo " * Kernel 2.6.32 or newer is now required."



[arch-commits] Commit in udev/trunk (udev.install)

2012-02-08 Thread Tom Gundersen
Date: Wednesday, February 8, 2012 @ 10:32:10
  Author: tomegun
Revision: 149598

make output a tad less obnoxious

Modified:
  udev/trunk/udev.install

--+
 udev.install |   94 +++--
 1 file changed, 38 insertions(+), 56 deletions(-)

Modified: udev.install
===
--- udev.install2012-02-08 15:27:31 UTC (rev 149597)
+++ udev.install2012-02-08 15:32:10 UTC (rev 149598)
@@ -3,71 +3,53 @@
 
 post_upgrade() {
   if [ "$(vercmp $2 181)" -lt 0 ]; then
-echo "ATTENTION UDEV:"
-echo "--"
+echo "udev changes:"
 if [ "$(vercmp $2 168)" -lt 0 ]; then
-  echo "Kernel 2.6.32 or newer is now required."
-  echo "  --"
-  echo "OSS emulation modules are not loaded by default, add to rc.conf if 
needed."
-  echo "  --"
-  echo "Arch specific cd symlinks are now no longer created."
-  echo "  --"
-  echo "cd and net persistent rules will no longer be autogenerated,"
-  echo "see  for details."
-  echo "  --"
-  echo "Errors are now logged (possibly to the console) by default."
-  echo "  --"
+  echo " * Kernel 2.6.32 or newer is now required."
+  echo " * OSS emulation modules are not loaded by default, add to rc.conf 
if needed."
+  echo " * Arch specific cd symlinks are now no longer created."
+  echo " * cd and net persistent rules will no longer be autogenerated,"
+  echo "   see  for details."
+  echo " * Errors are now logged (possibly to the console) by default."
 fi
 if [ "$(vercmp $2 171)" -lt 0 ]; then
-  echo "Arch's custom blacklisting logic has been removed. MOD_AUTOLOAD 
and"
-  echo "blacklisting in MODULES no longer works."
-  echo "See 'man modprobe.conf' for a replacement to blacklisting."
-  echo "To disable a module mod1 on the kernel command line, use"
-  echo "mod1.disable=1"
-  echo "or"
-  echo "modprobe.blacklist=mod1"
-  echo "  --"
-  echo "The following modules are no longer unconditionally loaded:"
-  echo "  pcspkr irtty-sir analog lp ppdev ide-generic"
-  echo "Add them to MODULES in rc.conf if you need them."
-  echo "  --"
+  echo " * Arch's custom blacklisting logic has been removed. MOD_AUTOLOAD 
and"
+  echo "   blacklisting in MODULES no longer works."
+  echo "   See 'man modprobe.conf' for a replacement to blacklisting."
+  echo "   To disable a module mod1 on the kernel command line, use"
+  echo " mod1.disable=1"
+  echo "   or"
+  echo " modprobe.blacklist=mod1"
+  echo " * The following modules are no longer unconditionally loaded:"
+  echo " pcspkr irtty-sir analog lp ppdev ide-generic"
+  echo "   Add them to MODULES in rc.conf if you need them."
 fi
 if [ "$(vercmp $2 172)" -lt 0 ]; then
-  echo "Blacklisting of framebuffer devices has moved from /etc/modprobe.d 
to"
-  echo "/lib/modprobe.d. Any customizations shoud be done to the file in 
/etc, as it"
-  echo "takes precedence."
-  echo "  --"
-  echo "kbd and rtc devices are no longer world readable."
-  echo "  --"
-  echo "rtc is no longer in the audio group and fb devices are no longer 
in"
-  echo "the video group, as permissions and ownership of fb devices are 
controlled"
-  echo "by X."
-  echo "  --"
+  echo " * Blacklisting of framebuffer devices has moved from 
/etc/modprobe.d to"
+  echo "   /lib/modprobe.d. Any customizations shoud be done to the file 
in /etc, as it"
+  echo "   takes precedence."
+  echo " * kbd and rtc devices are no longer world readable."
+  echo " * rtc is no longer in the audio group and fb devices are no 
longer in"
+  echo "   the video group, as permissions and ownership of fb devices are 
controlled"
+  echo "   by X."
 fi
 if [ "$(vercmp $2 174)" -lt 0 ]; then
-  echo "We now use upstream rules for assigning devices to the 'disk', 
'optical',"
-  echo "'scanner' and 'video' groups. Beware of any changes."
-  echo "  --"
-  echo "We no longer create symlinks from /dev/ to /dev/0."
-  echo "  --"
-  echo "For security reasons, we no longer add devices to the 'storage' 
group. Use"
-  echo "udisks and friends, or add custom rules to /etc/udev.d/rules/, if 
you want"
-  echo "this functionality back."
-  echo " --"
-  echo "We no longer create the static nodes on install needed for an 
initrd-less boot"
-  echo "where devtmpfs is not mounted by the kernel, this only affects 
fresh installs."
-  echo " --"
+  echo " * We now use upstream rules for assigning devices to the 'disk', 
'optical',"
+  echo "   'scanner' and 'video' groups. Beware of any changes."
+  echo " * We no longer create symlinks from /dev/ to /dev/0."
+ 

[arch-commits] Commit in udev/trunk (udev.install)

2011-10-19 Thread Tom Gundersen
Date: Wednesday, October 19, 2011 @ 13:08:08
  Author: tomegun
Revision: 140813

forgot a closing quote

Modified:
  udev/trunk/udev.install

--+
 udev.install |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: udev.install
===
--- udev.install2011-10-19 17:05:48 UTC (rev 140812)
+++ udev.install2011-10-19 17:08:08 UTC (rev 140813)
@@ -52,7 +52,7 @@
 echo "We no longer create symlinks from /dev/ to /dev/0."
 echo "  --"
 echo "For security reasons, we no longer add devices to the 'storage' 
group. Use"
-echo "udisks and friends, or add custom rules to /etc/udev.d/rules/, if 
you want
+echo "udisks and friends, or add custom rules to /etc/udev.d/rules/, if 
you want"
 echo "this functionality back."
 echo " --"
 echo "We no longer create the static nodes on install needed for an 
initrd-less and"



[arch-commits] Commit in udev/trunk (udev.install)

2011-10-19 Thread Tom Gundersen
Date: Wednesday, October 19, 2011 @ 12:38:56
  Author: tomegun
Revision: 140811

post-install messages: prepare for 174

Modified:
  udev/trunk/udev.install

--+
 udev.install |   34 --
 1 file changed, 24 insertions(+), 10 deletions(-)

Modified: udev.install
===
--- udev.install2011-10-19 16:21:22 UTC (rev 140810)
+++ udev.install2011-10-19 16:38:56 UTC (rev 140811)
@@ -2,7 +2,7 @@
 # arg 2:  the old package version
 
 post_upgrade() {
-  if [ "$(vercmp $2 172)" -lt 0 ]; then
+  if [ "$(vercmp $2 174)" -lt 0 ]; then
 echo "ATTENTION UDEV:"
 echo "--"
 if [ "$(vercmp $2 168)" -lt 0 ]; then
@@ -32,17 +32,31 @@
   echo "Add them to MODULES in rc.conf if you need them."
   echo "  --"
 fi
-echo "Support for non-devtmpfs self-compiled kernels have been moved to 
udev-compat."
+if [ "$(vercmp $2 172)" -lt 0 ]; then
+  echo "Support for non-devtmpfs self-compiled kernels have been moved to 
udev-compat."
+  echo "  --"
+  echo "Blacklisting of framebuffer devices has moved from /etc/modprobe.d 
to"
+  echo "/lib/modprobe.d. Any customizations shoud be done to the file in 
/etc, as it"
+  echo "takes precedence."
+  echo "  --"
+  echo "kbd and rtc devices are no longer world readable."
+  echo "  --"
+  echo "rtc is no longer in the audio group and fb devices are no longer 
in"
+  echo "the video group, as permissions and ownership of fb devices are 
controlled"
+  echo "by X."
+  echo "  --"
+fi
+echo "We now use upstream rules for assigning devices to the 'disk', 
'optical',"
+echo "'scanner' and 'video' groups. Beware of any changes."
 echo "  --"
-echo "Blacklisting of framebuffer devices has moved from /etc/modprobe.d 
to"
-echo "/lib/modprobe.d. Any customizations shoud be done to the file in 
/etc, as it"
-echo "takes precedence."
+echo "We no longer create symlinks from /dev/ to /dev/0."
 echo "  --"
-echo "kbd and rtc devices are no longer world readable."
-echo "  --"
-echo "rtc is no longer in the audio group and fb devices are no longer in"
-echo "the video group, as permissions and ownership of fb devices are 
controlled"
-echo "by X."
+echo "For security reasons, we no longer add devices to the 'storage' 
group. Use"
+echo "udisks and friends, or add custom rules to /etc/udev.d/rules/, if 
you want
+echo "this functionality back."
+echo " --"
+echo "We no longer create the static nodes on install needed for an 
initrd-less and"
+echo "devtmpfs-less boot, this only affects fresh installs."
 echo "---"
   fi
 }



[arch-commits] Commit in udev/trunk (udev.install)

2011-09-12 Thread Tom Gundersen
Date: Monday, September 12, 2011 @ 08:36:41
  Author: tomegun
Revision: 137915

install: remove post-install

Here's to the world's shortest grace-period!

This commit removes the creation of /dev/{console,null,zero} as it is not needed
in our standard install, is unlikely to work where it is needed, is easy to add 
manually
and will not break any existing installations.

Please just use an automounted devtmpfs unless you are using an initrd.

Modified:
  udev/trunk/udev.install

--+
 udev.install |   28 
 1 file changed, 28 deletions(-)

Modified: udev.install
===
--- udev.install2011-09-12 12:32:42 UTC (rev 137914)
+++ udev.install2011-09-12 12:36:41 UTC (rev 137915)
@@ -46,31 +46,3 @@
 echo "---"
   fi
 }
-
-post_install() {
-
-  # We add the basic nodes (/dev/{console,null,zero}) to the rootfs, so they 
will be
-  # available, even when booting without an initrd, and without automounted 
devtmpfs.
-  # Relying on this functionality is ill adviced, but we will support it for 
now.
-
-  # The Archlinux installer bind-mounts /dev to /mnt/dev, thus making the real 
/dev invisible
-  ROOTDIR=""
-  [ "$(stat -c %D /)" != "$(stat -c %D /dev)" ] && ROOTDIR=$(mktemp -d 
/tmp/udevinstall.XX)
-  [ -n "${ROOTDIR}" ] && mount --bind / ${ROOTDIR}
-  if [ ! -c ${ROOTDIR}/dev/console ]; then
-rm -f ${ROOTDIR}/dev/console
-mknod -m600 ${ROOTDIR}/dev/console c 5 1
-  fi
-  if [ ! -c ${ROOTDIR}/dev/null ]; then
-rm -f ${ROOTDIR}/dev/null
-mknod -m644 ${ROOTDIR}/dev/null c 1 3
-  fi
-  if [ ! -c ${ROOTDIR}/dev/zero ]; then
-rm -f ${ROOTDIR}/dev/zero
-mknod -m644 ${ROOTDIR}/dev/zero c 1 5
-  fi
-  if [ -n "${ROOTDIR}" ]; then
-umount ${ROOTDIR}
-rmdir ${ROOTDIR}
-  fi
-}



[arch-commits] Commit in udev/trunk (udev.install)

2011-09-12 Thread Tom Gundersen
Date: Monday, September 12, 2011 @ 08:12:19
  Author: tomegun
Revision: 137912

install: add comment to explain why we need to do what we do

This was in response to FS#25954.

Modified:
  udev/trunk/udev.install

--+
 udev.install |6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

Modified: udev.install
===
--- udev.install2011-09-12 12:06:01 UTC (rev 137911)
+++ udev.install2011-09-12 12:12:19 UTC (rev 137912)
@@ -48,7 +48,11 @@
 }
 
 post_install() {
-  # If a ramfs is mounted, we still need to make sure that 
/dev/{console,null,zero} exist
+
+  # We add the basic nodes (/dev/{console,null,zero}) to the rootfs, so they 
will be
+  # available, even when booting without an initrd, and without automounted 
devtmpfs.
+  # Relying on this functionality is ill adviced, but we will support it for 
now.
+
   # The Archlinux installer bind-mounts /dev to /mnt/dev, thus making the real 
/dev invisible
   ROOTDIR=""
   [ "$(stat -c %D /)" != "$(stat -c %D /dev)" ] && ROOTDIR=$(mktemp -d 
/tmp/udevinstall.XX)



[arch-commits] Commit in udev/trunk (udev.install)

2011-07-30 Thread Tom Gundersen
Date: Saturday, July 30, 2011 @ 19:32:42
  Author: tomegun
Revision: 133958

syntax error in .install

Modified:
  udev/trunk/udev.install

--+
 udev.install |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: udev.install
===
--- udev.install2011-07-30 23:29:02 UTC (rev 133957)
+++ udev.install2011-07-30 23:32:42 UTC (rev 133958)
@@ -41,8 +41,8 @@
 echo "kbd and rtc devices are no longer world readable."
 echo "  --"
 echo "rtc is no longer in the audio group and fb devices are no longer in
-echo "the video group (permissions and ownership of fb devices are 
controlled
-echo "by X)."
+echo "the video group, as permissions and ownership of fb devices are 
controlled
+echo "by X."
 echo "---"
   fi
 }



[arch-commits] Commit in udev/trunk (udev.install)

2011-07-14 Thread Tom Gundersen
Date: Thursday, July 14, 2011 @ 14:23:13
  Author: tomegun
Revision: 131767

Wrap lines v2

Modified:
  udev/trunk/udev.install

--+
 udev.install |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: udev.install
===
--- udev.install2011-07-14 18:21:30 UTC (rev 131766)
+++ udev.install2011-07-14 18:23:13 UTC (rev 131767)
@@ -35,8 +35,8 @@
 echo "Support for non-devtmpfs self-compiled kernels have been moved to 
udev-compat."
 echo "  --"
 echo "Blacklisting of framebuffer devices has moved from /etc/modprobe.d to
-echo "/lib/modprobe.d"
-echo "Any customizations shoud be done to the file in /etc, as it takes 
precedence."
+echo "/lib/modprobe.d. Any customizations shoud be done to the file in 
/etc, as it
+echo "takes precedence."
 echo "  --"
 echo "kbd and rtc devices are no longer world readable."
 echo "  --"



[arch-commits] Commit in udev/trunk (udev.install)

2011-07-14 Thread Tom Gundersen
Date: Thursday, July 14, 2011 @ 14:21:30
  Author: tomegun
Revision: 131766

Wrap lines

Modified:
  udev/trunk/udev.install

--+
 udev.install |8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

Modified: udev.install
===
--- udev.install2011-07-14 17:11:18 UTC (rev 131765)
+++ udev.install2011-07-14 18:21:30 UTC (rev 131766)
@@ -34,13 +34,15 @@
 fi
 echo "Support for non-devtmpfs self-compiled kernels have been moved to 
udev-compat."
 echo "  --"
-echo "Blacklisting of framebuffer devices has moved from /etc/modprobe.d 
to /lib/modprobe.d"
+echo "Blacklisting of framebuffer devices has moved from /etc/modprobe.d to
+echo "/lib/modprobe.d"
 echo "Any customizations shoud be done to the file in /etc, as it takes 
precedence."
 echo "  --"
 echo "kbd and rtc devices are no longer world readable."
 echo "  --"
-echo "rtc is no longer in the audio group and fb devices are no longer in 
the video group"
-echo "(permissions and ownership of fb devices are controlled by X)."
+echo "rtc is no longer in the audio group and fb devices are no longer in
+echo "the video group (permissions and ownership of fb devices are 
controlled
+echo "by X)."
 echo "---"
   fi
 }



[arch-commits] Commit in udev/trunk (udev.install)

2010-11-17 Thread Pierre Schmitz
Date: Wednesday, November 17, 2010 @ 15:46:41
  Author: pierre
Revision: 99808

supress 'file not found' error on install

Modified:
  udev/trunk/udev.install

--+
 udev.install |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: udev.install
===
--- udev.install2010-11-17 20:09:00 UTC (rev 99807)
+++ udev.install2010-11-17 20:46:41 UTC (rev 99808)
@@ -28,7 +28,7 @@
 mknod -m644 ${ROOTDIR}/dev/null c 1 3
   fi
   if [ ! -c ${ROOTDIR}/dev/zero ]; then
-rm ${ROOTDIR}/dev/zero
+rm -f ${ROOTDIR}/dev/zero
 mknod -m644 ${ROOTDIR}/dev/zero c 1 5
   fi
   if [ -n "${ROOTDIR}" ]; then



[arch-commits] Commit in udev/trunk (udev.install)

2010-09-05 Thread Thomas Bächler
Date: Monday, September 6, 2010 @ 01:23:22
  Author: thomas
Revision: 90004

Make sure mknod doesn't fail with 'file exists', fixes FS#18232

Modified:
  udev/trunk/udev.install

--+
 udev.install |   15 ---
 1 file changed, 12 insertions(+), 3 deletions(-)

Modified: udev.install
===
--- udev.install2010-09-05 22:24:48 UTC (rev 90003)
+++ udev.install2010-09-06 05:23:22 UTC (rev 90004)
@@ -19,9 +19,18 @@
   ROOTDIR=""
   [ "$(stat -c %D /)" != "$(stat -c %D /dev)" ] && ROOTDIR=$(mktemp -d 
/tmp/udevinstall.XX)
   [ -n "${ROOTDIR}" ] && mount --bind / ${ROOTDIR}
-  [ -c ${ROOTDIR}/dev/console ] || mknod -m600 ${ROOTDIR}/dev/console c 5 1
-  [ -c ${ROOTDIR}/dev/null ]|| mknod -m644 ${ROOTDIR}/dev/null c 1 3
-  [ -c ${ROOTDIR}/dev/zero ]|| mknod -m644 ${ROOTDIR}/dev/zero c 1 5
+  if [ ! -c ${ROOTDIR}/dev/console ]; then
+rm -f ${ROOTDIR}/dev/console
+mknod -m600 ${ROOTDIR}/dev/console c 5 1
+  fi
+  if [ ! -c ${ROOTDIR}/dev/null ]; then
+rm -f ${ROOTDIR}/dev/null
+mknod -m644 ${ROOTDIR}/dev/null c 1 3
+  fi
+  if [ ! -c ${ROOTDIR}/dev/zero ]; then
+rm ${ROOTDIR}/dev/zero
+mknod -m644 ${ROOTDIR}/dev/zero c 1 5
+  fi
   if [ -n "${ROOTDIR}" ]; then
 umount ${ROOTDIR}
 rmdir ${ROOTDIR}