Bug#779874: /usr/bin/grub-mknetdir: grub-mknetdir documentation and permisions werdness

Ben Hildred ben at hildred.us
Thu Mar 5 21:07:55 UTC 2015


Package: grub-common
Version: 2.02~beta2-21
Severity: minor
File: /usr/bin/grub-mknetdir

grub-mknetdir almost does what I want, I think?

There are two issue with this program, first is permissions: It installs all
files 0700. Directories get reasonable permissions (0755) but all the files can
only be read by the user. If I manually use chmod to change the permissions of
all files to 0644 everything works just fine, but the default does not work
with tftp. The only exception would be if it installs any executable files.
(Speaking of which why does it install modinfo.sh? It is not needed by the
client.)

The other issue is documentation. Kinda. when you run the program with --net-
directory=$DIRA and --subdir=$DIRB (why would you not, the conformation message
tells you to point your dhcp at $DIRA/$DIRB/PATH which is wrong. dhcp should
point to $DIRB/$PATH! Your tftp server should point to $DIRA. The only
exception to this is if your tftp server will serve multiple directory trees,
but that is not common unless DIRA=/ in which case it is only a special case of
the typical installation.

The command line I use is:
grub-mknetdir --compress=xz --net-directory=/tftpboot --subdir=grub \
--modules="bufio normal boot gfxterm video video_fb png echo echo gzio minicmd
test"

P.S. platform specific module options would be nice here too.



More information about the Pkg-grub-devel mailing list