Framebuffer, Fai client image logo

n43w79 n43w79 at gmail.com
Tue Mar 4 17:27:37 CET 2014


On 12/11/2013 08:09, Bugra Cakmak wrote:
> Hi Guys, I want to put background image on FAI client installation.
> Is there anyway to do that kind of system not like ubiquinty or
> debian installer, just raw image in here
>
Hello, assuming you are using grub2; please try:

#!/bin/bash
grub2_framebuffer(){
echo "Executing: ${FUNCNAME}...."
echo "## ./$(basename $0):${FUNCNAME} by root at $(date +"%m/%d/%Y:%H:%M:%N")" >> /root/install_history.log
GrubURL=${GrubURL:=http://www.mach82.ca/insecure/13}
GrubJpg=${GrubJpg:=abstract_butterfly_1280x1024.jpg}
[ ! -f /boot/${GrubJpg} ] && cd /boot && wget ${GrubURL}/${GrubJpg} && \
sed -i '/^GRUB_CMDLINE_LINUX=/ c\GRUB_CMDLINE_LINUX="vga=0x31a"' /etc/default/grub && \
sed -i '/^#GRUB_GFXMODE=/ a\GRUB_GFXMODE=1280x1024\
GRUB_BACKGROUND=\/boot\/abstract_butterfly_1280x1024.jpg' /etc/default/grub && update-grub
}
# Function calls
grub2_framebuffer

Note1: Must change GrubURL and GrubJpg;
Note2: Be careful with long-lines;
Note3: Place the above at $FAI_CONFIGDIR/scripts/LAST/99-last; and
Note4: Need more information, feel free to contact me off-list.
Cheers,
Q.


More information about the linux-fai mailing list