grub2: symlink on reiserfs: error: file not found
Bean <[email protected]> schrieb am 25.02.2008 15:08:56:
Quoted 7 lines · Christian Meyer
Quoted 2 lines
The diskimage http://www.chbmeyer.de/1.reiserfs.gz has a size of 35 MB (compressed: 36kb).
The test file have problem, the link is pointed to
/mnt/boot/testinstead of/boot/test.
Oh, I'm really sorry about it, too stupid. Fixed it with http://www.chbmeyer.de/1.reiserfs.gz
I used the symlink that caused the trouble:
cp -dp /media/hda3/vmlinuz /mnt/
and exchanged the kernel by a textfile.
Christian Meyer
_________________________________________________________________________
Mit der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179
Quoted 12 lines · Christian Meyer
Bean <[email protected]> schrieb am 25.02.2008 15:08:56:
Quoted 9 lines · Christian Meyer
Quoted 3 lines
The diskimage http://www.chbmeyer.de/1.reiserfs.gz has a size of 35 MB (compressed: 36kb).
The test file have problem, the link is pointed to
/mnt/boot/testinstead of/boot/test.
Quoted 6 lines
Oh, I'm really sorry about it, too stupid. Fixed it with http://www.chbmeyer.de/1.reiserfs.gz
I used the symlink that caused the trouble:
cp -dp /media/hda3/vmlinuz/mnt/
and exchanged the kernel by a textfile.
Ok, i found the bug, symbol link name in reiserfs is not null-ended, so we need to add 0 at the end of string:
fs/reiserfs.c +2 -1
@@ -659,7 +659,7 @@ grub_reiserfs_read_symlink (grub_fshelp_node_t node) >> GRUB_DISK_SECTOR_BITS); offset =grub_le_to_cpu16 (found.header.item_location); - symlink_buffer =grub_malloc (len); + symlink_buffer =grub_malloc (len +1 );if (! symlink_buffer) goto fail;
@@ -667,6 +667,7 @@ grub_reiserfs_read_symlink (grub_fshelp_node_t node)if (grub_errno) goto fail; + symlink_buffer[len] =0 ;return symlink_buffer; fail:
Signature · 1 line
Bean
Quoted 13 lines · Bean
Quoted 12 lines · Christian Meyer
Bean <[email protected]> schrieb am 25.02.2008 15:08:56:
Quoted 7 lines · Christian Meyer
Quoted 2 lines
The diskimage http://www.chbmeyer.de/1.reiserfs.gz has a size of 35
MB (compressed: 36kb).The test file have problem, the link is pointed to
/mnt/boot/testinstead of
/boot/test.Oh, I'm really sorry about it, too stupid. Fixed it with http://www.chbmeyer.de/1.reiserfs.gz
Quoted 6 lines
Quoted 3 lines
I used the symlink that caused the trouble:
cp -dp /media/hda3/vmlinuz/mnt/
and exchanged the kernel by a textfile.Ok, i found the bug, symbol link name in reiserfs is not null-ended, so we need to add 0 at the end of string:
Great. :)
Okuji
Committed.
Signature · 1 line
Bean