On 28 July 2015 at 20:30, Andrei Borzenkov <arvidj...@gmail.com> wrote: > > В Tue, 28 Jul 2015 19:10:39 +0200 > Jeroen Oortwijn <oortw...@gmail.com> пишет: > > > Hello, > > > > Currently Grub identifies the Be File System as 'bfs'. > > In Linux however, 'bfs' refers to the Boot File System [1] and 'befs' > > refers to the Be File System. > > > > As a result, the os-prober utility (which uses grub-probe) > > where do you see it? > > fs_type () { > if (export PATH="/lib/udev:$PATH"; type vol_id) >/dev/null 2>&1; then > PATH="/lib/udev:$PATH" vol_id --type "$1" 2>/dev/null > elif type blkid >/dev/null 2>&1; then > blkid -o value -s TYPE "$1" 2>/dev/null > else > return 0 > fi > }x
Utility os-prober uses grub-probe (and grub-mount) in 50mounted-tests on line 48 [3]: mounted= if type grub-mount >/dev/null 2>&1 && \ type grub-probe >/dev/null 2>&1 && \ grub-mount "$partition" "$tmpmnt" 2>/dev/null; then mounted=1 type="$(grub-probe -d "$partition" -t fs)" || true if [ "$type" ]; then debug "mounted using GRUB $type filesystem driver" else debug "mounted using GRUB, but unknown filesystem?" type=fuseblk fi else When running os-prober it outputs the following in the syslog: Jul 28 20:54:53 Gromit os-prober: debug: running /usr/lib/os-probes/50mounted-tests on /dev/sda6 Jul 28 20:54:54 Gromit 50mounted-tests: debug: mounted using GRUB bfs filesystem driver Jul 28 20:54:54 Gromit 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/05efi Jul 28 20:54:54 Gromit 05efi: debug: Not on UEFI platform Jul 28 20:54:54 Gromit 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/10freedos Jul 28 20:54:54 Gromit 10freedos: debug: /dev/sda6 is not a FAT partition: exiting Jul 28 20:54:54 Gromit 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/10qnx Jul 28 20:54:54 Gromit 10qnx: debug: /dev/sda6 is not a QNX4 partition: exiting Jul 28 20:54:54 Gromit 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/20macosx Jul 28 20:54:54 Gromit macosx-prober: debug: /dev/sda6 is not an HFS+ partition: exiting Jul 28 20:54:54 Gromit 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/20microsoft Jul 28 20:54:54 Gromit 20microsoft: debug: /dev/sda6 is not a MS partition: exiting Jul 28 20:54:54 Gromit 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/30utility Jul 28 20:54:54 Gromit 30utility: debug: /dev/sda6 is not a FAT partition: exiting Jul 28 20:54:54 Gromit 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/40lsb Jul 28 20:54:54 Gromit 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/70hurd Jul 28 20:54:54 Gromit 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/80minix Jul 28 20:54:54 Gromit 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/83haiku Jul 28 20:54:54 Gromit 83haiku: debug: /dev/sda6 is not a BeFS partition: exiting Jul 28 20:54:54 Gromit 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/90linux-distro Jul 28 20:54:54 Gromit 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/90solaris Jul 28 20:54:54 Gromit 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/efi As you can see, it thinks /dev/sda6 a 'bfs' partition, causing script 83haiku to fail. Kind regards, Jeroen Oortwijn [3] http://anonscm.debian.org/cgit/d-i/os-prober.git/tree/os-probes/common/50mounted-tests#n48 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel