[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#580709: marked as done (oldsys-preseed: add support for Buffalo Linkstation Pro/Live platform)



Your message dated Fri, 21 May 2010 21:39:04 +0000
with message-id <E1OFZvs-0002HH-5r@ries.debian.org>
and subject line Bug#580709: fixed in oldsys-preseed 3.11
has caused the Debian Bug report #580709,
regarding oldsys-preseed: add support for Buffalo Linkstation Pro/Live platform
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
580709: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=580709
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: oldsys-preseed
Version: 3.10
Severity: wishlist
Tags: patch

The attached patch adds support in oldsys-preseed for the Linkstation
Pro/Live platform, similar to Kurobox Pro which is already supported.
This support is necessary for network-console to start without user
interaction, which is important when a serial console is not available.
Comments in the patch describe a caveat regarding preseeding from the
factory default software with a static network configuration.
Index: oldsys-preseed
===================================================================
--- oldsys-preseed	(revision 63088)
+++ oldsys-preseed	(working copy)
@@ -153,6 +153,40 @@
 			fi
 			umount $path/rootfs || true
 			rmdir $path/rootfs $path || true
+		elif echo "$machine" | grep -q "^Buffalo Linkstation Pro/Live"; then
+			# the default filesystem for the system partition is XFS, which isn't included in our startup environment
+			# however, customized boxes might have ext3 instead, so try to mount anyway
+			rootdev=/dev/sda2
+			path=/tmp/oldsys-preseed
+			mkdir -p $path/rootfs
+			mount -o ro $rootdev $path/rootfs || true
+			INTERFACE=eth0
+			parse_unix_tree $path/rootfs
+			info=$path/rootfs/etc/melco/info
+			if [ -e "$info" ]; then
+				HOSTNAME=$(sed -n '/^hostname/ {s/.*=//; ]}' "$info")
+				usage=$(sed -n '/^my_ipaddress/ {s/.*=//; }' "$info")
+				if [ "$usage" = "dhcp" ]; then
+					NET_CONFIG=dhcp
+				else
+					NET_CONFIG=static
+					IP_ADDRESS=$usage
+					NETMASK=$(sed -n '/^my_subnetmask/ {s/.*=//; p}' "$netinfo")
+					GATEWAY=$(sed -n '/^my_dgw/ {s/.*=//; p}' "$netinfo")
+				fi
+			fi
+			MAC=$(ip addr | grep '^[[:space:]]*link/ether' | head -n 1 | sed 's/.*ether \([^ ]*\).*/\1/')
+			unset_matching_var "HOSTNAME" LS-GL$(echo "$MAC" | sed 's/^..:..:..:..:.//' | sed 's/://g')
+			sanity_check_static_config
+			if [ "$NET_CONFIG" != "static" ]; then
+				IPADDRESS=192.168.11.150
+				NETMASK=255.255.255.0
+				GATEWAY=192.168.11.1
+				[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.11.1
+				dhcp_fallback $FILE
+			fi
+			umount $path/rootfs || true
+			rmdir $path/rootfs $path || true
 		elif echo "$machine" | grep -q "^D-Link DNS-323"; then
 			check_file /proc/mtd
 			rootfs=$(get_mtdblock "MTD1")

--- End Message ---
--- Begin Message ---
Source: oldsys-preseed
Source-Version: 3.11

We believe that the bug you reported is fixed in the latest version of
oldsys-preseed, which is due to be installed in the Debian FTP archive:

oldsys-preseed_3.11.dsc
  to main/o/oldsys-preseed/oldsys-preseed_3.11.dsc
oldsys-preseed_3.11.tar.gz
  to main/o/oldsys-preseed/oldsys-preseed_3.11.tar.gz
oldsys-preseed_3.11_armel.udeb
  to main/o/oldsys-preseed/oldsys-preseed_3.11_armel.udeb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 580709@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Martin Michlmayr <tbm@cyrius.com> (supplier of updated oldsys-preseed package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 21 May 2010 21:55:02 +0100
Source: oldsys-preseed
Binary: oldsys-preseed
Architecture: source armel
Version: 3.11
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Martin Michlmayr <tbm@cyrius.com>
Description: 
 oldsys-preseed - Preseed debian-installer from an existing device (udeb)
Closes: 580709
Changes: 
 oldsys-preseed (3.11) unstable; urgency=low
 .
   [ Joey Hess ]
   * Preseed ethdetect/prompt_missing_firmware, to avoid prompts about firmware
     before network-console is running.
 .
   [ Frans Pop ]
   * Remove Standards-Version field.
 .
   [ Ryan Tandy ]
   * Add support for Buffalo Linkstation Pro/Live.  Closes: #580709.
Checksums-Sha1: 
 d8d2cc84f170fda8d7588a737ca6b87219abd463 848 oldsys-preseed_3.11.dsc
 060d4d6f4bdb170d6787d1ce2471a82815964d7c 302089 oldsys-preseed_3.11.tar.gz
 7470fe6ecd30a382dc549916c4bff58150693e6e 6466 oldsys-preseed_3.11_armel.udeb
Checksums-Sha256: 
 a7ae84eaa5bf3f116b356570c3ea25753a0a732db3f5cb0981549c0af718ec02 848 oldsys-preseed_3.11.dsc
 389c0cf273076a62dedc51d9562f0435ac189f04754a5d34068ee8ca9d70b99b 302089 oldsys-preseed_3.11.tar.gz
 2fcabe2f2fb46e44dc3e4d07ee08944a07c0eaddce9baa03ac6594cf415b4b28 6466 oldsys-preseed_3.11_armel.udeb
Files: 
 6b5a0154191429e62983775a164b8c7d 848 debian-installer optional oldsys-preseed_3.11.dsc
 cf76947ea1393872b7dfbd6728c172e5 302089 debian-installer optional oldsys-preseed_3.11.tar.gz
 6aa3f99d6c700ad67455e14849ca00e5 6466 debian-installer optional oldsys-preseed_3.11_armel.udeb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkv295YACgkQKb5dImj9VJ/7bQCfYYygVw3rmFyAdgLYFJdHLs63
PCMAn3xl/tjSfA61CM6XT8H/QXdX2WXi
=Ie85
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: