Guest User

benjamin lessani

a guest
Nov 3rd, 2009
181
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Package: live-initramfs
  2. Version: 1.154.8-1
  3. Severity: important
  4.  
  5.  
  6. I'm using line-initramfs as part of FAI to netboot machines with two
  7. NICs, only one of which is actually set up to be DHCPd.  We have
  8. hundreds of machines like this at my work, it's not something we can
  9. reasonably change at the per-machine level.
  10.  
  11. The following patch makes everything work in my environment, and I
  12. believe will still work in single-NIC setups:
  13.  
  14. *** /srv/fai/nfsroot/live/filesystem.dir/usr/share/initramfs-tools/scripts/functions    Wed Jan  7 06:14:37 2009
  15. --- /srv/fai/broken/initramfs-tools_scripts_functions   Wed Feb 11 12:56:23 2009
  16. ***************
  17. *** 269,278 ****
  18. --- 269,294 ----
  19.                 ;;
  20.         ""|on|any)
  21.                 # Bring up device
  22. +               if [ -n "${DEVICE}" ]
  23. +               then
  24.                         ipconfig -t 180 ${DEVICE}
  25. +               else
  26. +                       # In some cases, the first run doesn't work but the second does immediately.
  27. +                       ipconfig -t 60 all
  28. +                       ipconfig -t 60 all
  29. +                       ipconfig -t 60 all
  30. +               fi
  31.                 ;;
  32.         dhcp|bootp|rarp|both)
  33. +               if [ -n "${DEVICE}" ]
  34. +               then
  35.                         ipconfig -t 180 -c ${IPOPTS} -d ${DEVICE}
  36. +               else
  37. +                       # In some cases, the first run doesn't work but the second does immediately.
  38. +                       ipconfig -t 60 -c ${IPOPTS} -d all
  39. +                       ipconfig -t 60 -c ${IPOPTS} -d all
  40. +                       ipconfig -t 60 -c ${IPOPTS} -d all
  41. +               fi
  42.                 ;;
  43.         *)
  44.                 ipconfig -t 180 -d $IPOPTS
  45. *** /srv/fai/nfsroot/live/filesystem.dir/usr/share/initramfs-tools/scripts/live Sun Feb  8 06:09:09 2009
  46. --- /srv/fai/broken/initramfs-tools_scripts_live        Wed Feb 11 12:56:22 2009
  47. ***************
  48. *** 699,709 ****
  49.                 udevsettle
  50.         fi
  51.  
  52. !       ipconfig ${DEVICE} | tee /netboot.config
  53.  
  54. -       # source relevant ipconfig output
  55. -       OLDHOSTNAME=${HOSTNAME}
  56. -       . /tmp/net-${DEVICE}.conf
  57.         [ -z ${HOSTNAME} ] && HOSTNAME=${OLDHOSTNAME}
  58.         export HOSTNAME
  59.  
  60. --- 699,711 ----
  61.                 udevsettle
  62.         fi
  63.  
  64. !       # We don't necessarily know which NIC we should be using
  65. !       DEVICE=''
  66. !
  67. !       # make /scripts/live use configure_networking just like /scripts/nfs
  68. !       # does; this sources /tmp/net-*.conf as well
  69. !       configure_networking
  70.  
  71.         [ -z ${HOSTNAME} ] && HOSTNAME=${OLDHOSTNAME}
  72.         export HOSTNAME
  73.  
  74.  
  75.  
  76. -- Package-specific info:
  77.  
  78. -- System Information:
  79. Debian Release: 5.0
  80.   APT prefers testing
  81.   APT policy: (500, 'testing')
  82. Architecture: i386 (i686)
  83.  
  84. Kernel: Linux 2.6.24.2-ls3 (SMP w/1 CPU core)
  85. Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
  86. Shell: /bin/sh linked to /bin/bash
  87.  
  88. Versions of packages live-initramfs depends on:
  89. ii  busybox                       1:1.10.2-2 Tiny utilities for small and embed
  90. ii  file                          4.26-1     Determines file type using "magic"
  91. ii  initramfs-tools               0.92o      tools for generating an initramfs
  92. ii  sudo                          1.6.9p17-1 Provide limited super user privile
  93. ii  udev                          0.125-7    /dev/ and hotplug management daemo
  94. ii  user-setup                    1.23       Set up initial user and password
  95.  
  96. Versions of packages live-initramfs recommends:
  97. ii  eject                       2.1.5+deb1-4 ejects CDs and operates CD-Changer
  98. ii  uuid-runtime                1.41.3-1     universally unique id library
  99. ii  wget                        1.11.4-2     retrieves files from the web
  100.  
  101. Versions of packages live-initramfs suggests:
  102. pn  curlftpfs                     <none>     (no description available)
  103. pn  genext2fs                     <none>     (no description available)
  104. pn  httpfs2                       <none>     (no description available)
  105. ii  loop-aes-utils                2.13.1-4   Tools for mounting and manipulatin
  106. pn  mtd-tools                     <none>     (no description available)
  107. pn  squashfs-tools                <none>     (no description available)
  108.  
  109. -- no debconf information
  110.  
RAW Paste Data