Skip to content

Commit

Permalink
testing kfreebsd with ipxe
Browse files Browse the repository at this point in the history
  • Loading branch information
yeupou committed Dec 5, 2013
1 parent ae642d7 commit 86af5d3
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GNUkFreeBSD/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*-initrd.gz
*-kfreebsd-9.gz
ipxe-boot
65 changes: 65 additions & 0 deletions GNUkFreeBSD/ipxe-boot-update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
#!/bin/bash
#
# Copyright (c) 2013 Mathieu Roy <yeupou--gnu.org>
# http://yeupou.wordpress.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA

# do `export NO_WGET=1` if you want it do skip downloading files.

BOOT_OPTS="vga=normal"

# Use the following if you want to provide access to these over http
# instead of tftp or any other relevant protocol, assuming you set up
# the relevant server to serve these
#PREFIX=http://URL/pxe/

[ $NO_WGET ] && echo "NO_WGET is exported so we won't download required files."

# cd in the directory where this script resides, even if called from a symlink
# in /etc/cron.whatever/
ZERO=$0
if [ -L $0 ]; then ZERO=`readlink $0`; fi
cd `dirname $ZERO`

ARCHS="i386"

# recreate the ipxe-boot file
echo "#!ipxe" > ipxe-boot

MENU=""

# download images and update the labels
system=debian
for arch in $ARCHS; do
url=http://d-i.debian.org/daily-images/kfreebsd-$arch/daily/netboot-9/debian-installer/kfreebsd-$arch/
[ ! $NO_WGET ] && wget --quiet $url/initrd.gz -O `basename $dist`-$arch-initrd.gz
[ ! $NO_WGET ] && wget --quiet $url/kfreebsd-9.gz -O `basename $dist`-$arch-kfreebsd-9.gz
echo ":$system-`basename $dist`-$arch" >> ipxe-boot
echo kernel $PREFIX"GNUkFreeBSD/`basename $dist`-$arch-kfreebsd-9.gz $BOOT_OPTS" >> ipxe-boot
echo initrd $PREFIX"GNUkFreeBSD/`basename $dist`-$arch-initrd.gz" >> ipxe-boot
echo "boot" >> ipxe-boot
MENU="$MENU\nitem $system-`basename $dist`-$arch Install `echo $system | tr a-z A-Z` `basename $dist` $arch"
done


# add the menu lines
echo "menu GNU/kFreeBSD boot images" >> ipxe-boot
echo -e "$MENU" >> ipxe-boot
echo "choose target && goto \${target}" >> ipxe-boot
echo "# EOF" >> ipxe-boot

# EOF
Binary file added GNUkFreeBSD/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 86af5d3

Please sign in to comment.