bootsector / dpkg
John Bazik
jsb at cs.brown.edu
Fri Jun 7 23:04:25 CEST 2002
Bootsector is a really elegant, useful hack. So useful that we're
planning to use it on our handful of redhat systems, too. But it contains
a single reference to dpkg, to determine the machine architecture. No big
deal, but I thought I'd contribute a patch upstream in case anyone else
wants to use it on a non-debian system:
% diff -u bootsector.orig bootsector
--- bootsector.orig Fri Jun 7 16:52:57 2002
+++ bootsector Fri Jun 7 16:55:51 2002
@@ -48,9 +48,9 @@
dd bs=1c seek=$seek of=$1 2>/dev/null || echo "Can't write to boot
block $1"
}
-arch=`dpkg --print-installation-architecture`
-[ "$arch" = "i386" ] || {
- Currently, only i386 architecure is supported.
+arch=`uname -m | cut -c 1,3-`
+[ "$arch" = "i86" ] || {
+ Currently, only i386 architecture is supported.
exit 1
}
Cheers.
John Bazik
jsb at cs.brown.edu
More information about the linux-fai
mailing list