90f5f8ffe1
This should replace the yaboot-bin package (which should be dropped assuming this is found to be working well). This, instead of taking the binary from Debian, compiles yaboot from source. The tricky part here is e2fsprogs, or rather, libext2fs. Yaboot requires a fairly old version of it, and being a strictly ppc32 program, needs that library compiled in a minimal form for ppc32. In order to achieve that, I abuse the cross-compiler, using the musl ppc32 cross-compiler as that's universally available on all crosshosts, as well as all ppc64 (and ppc32 doesn't need it). The main reason to do this over shipping the binary is that this will actually work properly on some ppc64 machines, which require the bundled addnote executable, which can now be compiled properly for the native architecture.
20 lines
657 B
Diff
20 lines
657 B
Diff
Description: let it probe for other filesystems
|
|
Not having a partition does not constitute a bad device.
|
|
Author: Milan Kupcevic <milan@debian.org>
|
|
Bug-Debian: http://bugs.debian.org/819549
|
|
Forwarded: no
|
|
---
|
|
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
|
--- a/second/fs_swap.c
|
|
+++ b/second/fs_swap.c
|
|
@@ -60,8 +60,8 @@
|
|
DEBUG_OPEN;
|
|
|
|
if (file->device_kind != FILE_DEVICE_BLOCK || part == NULL) {
|
|
- DEBUG_LEAVE(FILE_ERR_BADDEV);
|
|
- return FILE_ERR_BADDEV;
|
|
+ DEBUG_LEAVE(FILE_ERR_BAD_FSYS);
|
|
+ return FILE_ERR_BAD_FSYS;
|
|
}
|
|
|
|
/* We assume that device is "short" and is correctly NULL terminsated */
|