В Mon, 12 Jan 2015 15:18:04 +0100 Sebastian Pipping <[email protected]> пишет:
> Hello again! > > > On 12.01.2015 04:18, Andrei Borzenkov wrote: > >> I am wondering if there is a tool for Grub2 theme creators that they > >> could run to see their theme in action > >> > >> * without rebooting their machine for each iteration or > >> > >> * need to prepare bootable machine images manually. > >> > >> Is there such a thing? > > > > Not that I'm aware of. I think using VM is the most straightforward. > > I built a tool [1] to do that now. > > > It creates a minimal sparse bootable image, copies the theme in and > starts KVM. It's basically the steps from my 2012 blog post [2] turned > into a tool [1]. > > Before using the tool, be warned that: > > * it is alpha/beta software that > > * needs root permissions in some part (calling sudo) > > * so I don't take any warrenty for anything right now! > > > This is how to make it preview the Archxion theme, as an example: > > git clone https://github.com/hartwork/grub2-theme-preview.git Dropping super-user requirement would be useful. You can build rescue CD using grub-mkrescue that does not require any root and QEMU itself certainly does not require it. Oh, and many ditros install new grub as grub2. I tried it on openSUSE: cp: невозможно создать обычный файл «/home/bor/src/grub2-theme-preview/3a3b931c4be83230c53f444e83e1d4935fe99ead099f8a3b7679f6ad8592f3d8/boot/grub/grub.cfg»: Нет такого файла или каталога (No such file or directory) which is correct bor@opensuse:~/src/grub2-theme-preview> LC_ALL=C ll 3a3b931c4be83230c53f444e83e1d4935fe99ead099f8a3b7679f6ad8592f3d8/boot/ total 13 drwxr-xr-x 5 root root 1024 Feb 11 09:27 grub2 drwx------ 2 root root 12288 Feb 11 09:26 lost+found Yet another reason to use grub-mkrescue which is always using fixed path /boot/grub on CD image. > > git clone https://github.com/Generator/Grub2-themes.git > > cd grub2-theme-preview > > ./grub2-theme-preview ../Grub2-themes/Archxion/ > > > The current usage is: > > # ./grub2-theme-preview --help > usage: grub2-theme-preview [-h] [--image] [--grub-cfg PATH] > [--version] PATH > > positional arguments: > PATH Path of theme directory (or image file) to preview > > optional arguments: > -h, --help show this help message and exit > --image Preview a background image rather than a whole > theme > --grub-cfg PATH Path grub.cfg file to apply > --version show program's version number and exit > > > More polishing and packaging soon. > > I'm looking forward to your patches and bug reports! > > Best, > > > > Sebastian > > > [1] https://github.com/hartwork/grub2-theme-preview.git > [2] https://blog.hartwork.org/?p=1807 > > > _______________________________________________ > Help-grub mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/help-grub _______________________________________________ Help-grub mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-grub
