Skip to content

Commit

Permalink
Merging INSTALL_DIR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven-Hendrik Haase committed Mar 18, 2011
1 parent f862d59 commit a3f051a
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 33 deletions.
8 changes: 4 additions & 4 deletions boot-files/syslinux/syslinux.cfg
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,7 @@
DEFAULT vesamenu.c32 DEFAULT vesamenu.c32
PROMPT 0 PROMPT 0
MENU TITLE live.linuX-gamers 0.9.6 MENU TITLE live.linuX-gamers 0.9.6
MENU BACKGROUND /boot/splash.png MENU BACKGROUND /%INSTALL_DIR%/boot/splash.png
TIMEOUT 300 TIMEOUT 300


F1 info.txt F1 info.txt
Expand Down Expand Up @@ -31,8 +31,8 @@ TEXT HELP
For general info on live.linuX-gamers, please press F1 For general info on live.linuX-gamers, please press F1
ENDTEXT ENDTEXT
MENU LABEL Boot live.linux-gamers MENU LABEL Boot live.linux-gamers
LINUX /boot/vmlinuz26 LINUX /%INSTALL_DIR%/boot/vmlinuz26
APPEND initrd=/boot/lglive.img lang=en locale=en_US.UTF-8 archisolabel=XXX rw_branch_size=25% APPEND initrd=/%INSTALL_DIR%/boot/lglive.img lang=en locale=en_US.UTF-8 archisobasedir=%INSTALL_DIR% archisolabel=XXX rw_branch_size=25%


LABEL normal LABEL normal
MENU LABEL Normal boot MENU LABEL Normal boot
Expand All @@ -41,7 +41,7 @@ APPEND hd0 0


LABEL memtest LABEL memtest
MENU LABEL Run Memtest86+ (RAM test) MENU LABEL Run Memtest86+ (RAM test)
LINUX /boot/memtest LINUX /%INSTALL_DIR%/boot/memtest


LABEL reboot LABEL reboot
MENU LABEL Reboot MENU LABEL Reboot
Expand Down
39 changes: 21 additions & 18 deletions buildscript.sh
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#### Change these settings to modify how this ISO is built. #### Change these settings to modify how this ISO is built.
# The directory that we use for working files. # The directory that we use for working files.
WORKDIR="work" WORKDIR="work"
# Directory on the iso where our stuff is installed.
INSTALL_DIR=lglive
# Output directory for built images. # Output directory for built images.
OUTDIR="out" OUTDIR="out"
# Directory where packages are cached. # Directory where packages are cached.
Expand Down Expand Up @@ -145,15 +147,16 @@ base-iso ()
{ {
[ ! ${QUIET} == "y" ] && echo "===== Making base-iso =====" [ ! ${QUIET} == "y" ] && echo "===== Making base-iso ====="
[ ! ${QUIET} == "y" ] && echo "base-iso: Copying boot-files" [ ! ${QUIET} == "y" ] && echo "base-iso: Copying boot-files"
mv "${WORKDIR}/root-image/boot" "${WORKDIR}/iso/" || true mv "${WORKDIR}/root-image/boot" "${WORKDIR}/iso/${INSTALL_DIR}/boot" || true
mv "${WORKDIR}/iso/boot/memtest86+/memtest.bin" "${WORKDIR}/iso/boot/memtest" mv "${WORKDIR}/iso/${INSTALL_DIR}/boot/memtest86+/memtest.bin" "${WORKDIR}/iso/${INSTALL_DIR}/boot/memtest"
[ "$?" -ne 0 ] && echo -e "\e[01;31mbase-iso: Exiting due to error while moving boot files\e[00m" && exit 1 [ "$?" -ne 0 ] && echo -e "\e[01;31mbase-iso: Exiting due to error while moving boot files\e[00m" && exit 1
cp -r boot-files/* "${WORKDIR}/iso/boot/" || return 1 mkdir -p ${WORKDIR}/iso/syslinux
cp -r boot-files/* "${WORKDIR}/iso/syslinux/" || return 1
[ "$?" -ne 0 ] && echo -e "\e[01;31mbase-iso: Exiting due to error while copying boot files\e[00m" && exit 1 [ "$?" -ne 0 ] && echo -e "\e[01;31mbase-iso: Exiting due to error while copying boot files\e[00m" && exit 1
[ ! ${QUIET} == "y" ] && echo "base-iso: Preparing isomounts" [ ! ${QUIET} == "y" ] && echo "base-iso: Preparing isomounts"
cp isomounts "${WORKDIR}" || return 1 cp isomounts "${WORKDIR}/iso/${INSTALL_DIR}/isomounts" || return 1
[ "$?" -ne 0 ] && echo -e "\e[01;31mbase-iso: Exiting because no isomounts file was found\e[00m" && exit 1 [ "$?" -ne 0 ] && echo -e "\e[01;31mbase-iso: Exiting because no isomounts file was found\e[00m" && exit 1
sed -i "s|@ARCH@|${ARCH}|g" "${WORKDIR}/isomounts" sed -i "s|@ARCH@|${ARCH}|g" "${WORKDIR}/iso/${INSTALL_DIR}/isomounts"
[ ! ${QUIET} == "y" ] && echo "base-iso: Making initrd image" [ ! ${QUIET} == "y" ] && echo "base-iso: Making initrd image"
git clone git://projects.archlinux.org/archiso.git archiso-temp &>/dev/null || return 1 git clone git://projects.archlinux.org/archiso.git archiso-temp &>/dev/null || return 1
cp -r archiso-temp/archiso/{hooks,install} ${BASEDIR}/${WORKDIR}/root-image/lib/initcpio/ || return 1 cp -r archiso-temp/archiso/{hooks,install} ${BASEDIR}/${WORKDIR}/root-image/lib/initcpio/ || return 1
Expand All @@ -166,7 +169,7 @@ base-iso ()
else else
chroot ${BASEDIR}/${WORKDIR}/root-image mkinitcpio -c /etc/mkinitcpio.conf -k ${KVER} -g "/lglive.img" &>/dev/null || return 1 chroot ${BASEDIR}/${WORKDIR}/root-image mkinitcpio -c /etc/mkinitcpio.conf -k ${KVER} -g "/lglive.img" &>/dev/null || return 1
fi fi
mv ${BASEDIR}/${WORKDIR}/root-image/lglive.img "${BASEDIR}/${WORKDIR}/iso/boot/lglive.img" &>/dev/null ||return 1 mv ${BASEDIR}/${WORKDIR}/root-image/lglive.img "${BASEDIR}/${WORKDIR}/iso/${INSTALL_DIR}/boot/lglive.img" &>/dev/null ||return 1
sed -i "s/^CacheDir/\#CacheDir/" "${BASEDIR}/${WORKDIR}/root-image/etc/pacman.conf" sed -i "s/^CacheDir/\#CacheDir/" "${BASEDIR}/${WORKDIR}/root-image/etc/pacman.conf"
sed -i "/localrepo/,+2d" "${BASEDIR}/${WORKDIR}/root-image/etc/pacman.conf" sed -i "/localrepo/,+2d" "${BASEDIR}/${WORKDIR}/root-image/etc/pacman.conf"
[ "$?" -ne 0 ] && echo -e "\e[01;31mbase-iso: Exiting due to error while running mkinitcpio\e[00m" && exit 1 [ "$?" -ne 0 ] && echo -e "\e[01;31mbase-iso: Exiting due to error while running mkinitcpio\e[00m" && exit 1
Expand All @@ -184,11 +187,11 @@ root-image ()
sed -i "/localrepo/{n; s|.*|Server = file\:\/\/${BASEDIR}/localrepo\/|}" pacman.conf sed -i "/localrepo/{n; s|.*|Server = file\:\/\/${BASEDIR}/localrepo\/|}" pacman.conf
[ ! ${QUIET} == "y" ] && echo "root-image: Installing packages" [ ! ${QUIET} == "y" ] && echo "root-image: Installing packages"
if [ ${VERBOSE} == "y" ]; then if [ ${VERBOSE} == "y" ]; then
mkarchiso -C pacman.conf -p base -v create "${WORKDIR}" mkarchiso -D ${INSTALL_DIR} -C pacman.conf -p base -v create "${WORKDIR}"
mkarchiso -C pacman.conf -p "${PACKAGES}" -v create "${WORKDIR}" mkarchiso -D ${INSTALL_DIR} -C pacman.conf -p "${PACKAGES}" -v create "${WORKDIR}"
else else
mkarchiso -C pacman.conf -p base -v create "${WORKDIR}" mkarchiso -D ${INSTALL_DIR} -C pacman.conf -p base -v create "${WORKDIR}"
mkarchiso -C pacman.conf -p "${PACKAGES}" -v create "${WORKDIR}" &> /dev/null mkarchiso -D ${INSTALL_DIR} -C pacman.conf -p "${PACKAGES}" -v create "${WORKDIR}" &> /dev/null
fi fi
rm -r "${BASEDIR}"/"${WORKDIR}"/root-image/home/* || true rm -r "${BASEDIR}"/"${WORKDIR}"/root-image/home/* || true
rm -r "${BASEDIR}"/"${WORKDIR}"/root-image/root/* || true rm -r "${BASEDIR}"/"${WORKDIR}"/root-image/root/* || true
Expand All @@ -206,12 +209,12 @@ bootloader ()
[ "$?" -ne 0 ] && echo -e "\e[01;31mbootloader: Exiting due to error while copying bootloader\e[00m" && exit 1 [ "$?" -ne 0 ] && echo -e "\e[01;31mbootloader: Exiting due to error while copying bootloader\e[00m" && exit 1
elif [ ${BOOTLOADER} == "syslinux" ]; then elif [ ${BOOTLOADER} == "syslinux" ]; then
[ ! ${QUIET} == "y" ] && echo "bootloader: Copying files for 'syslinux'" [ ! ${QUIET} == "y" ] && echo "bootloader: Copying files for 'syslinux'"
cp "${WORKDIR}/root-image/usr/lib/syslinux/isolinux.bin" "${WORKDIR}/iso/boot/syslinux/" || return 1 cp "${WORKDIR}/root-image/usr/lib/syslinux/isolinux.bin" "${WORKDIR}/iso/syslinux/" || return 1
cp "${WORKDIR}/root-image/usr/lib/syslinux/memdisk" "${WORKDIR}/iso/boot/syslinux/" || return 1 cp "${WORKDIR}/root-image/usr/lib/syslinux/memdisk" "${WORKDIR}/iso/syslinux/" || return 1
cp "${WORKDIR}/root-image/usr/lib/syslinux/pxelinux.0" "${WORKDIR}/iso/boot/syslinux/" || return 1 cp "${WORKDIR}/root-image/usr/lib/syslinux/pxelinux.0" "${WORKDIR}/iso/syslinux/" || return 1
cp "${WORKDIR}/root-image/usr/lib/syslinux/gpxelinux.0" "${WORKDIR}/iso/boot/syslinux/" || return 1 cp "${WORKDIR}/root-image/usr/lib/syslinux/gpxelinux.0" "${WORKDIR}/iso/syslinux/" || return 1
cp "${WORKDIR}/root-image/usr/lib/syslinux/"*.c32 "${WORKDIR}/iso/boot/syslinux/" || return 1 cp "${WORKDIR}/root-image/usr/lib/syslinux/"*.c32 "${WORKDIR}/iso/syslinux/" || return 1
cp "${WORKDIR}/root-image/usr/lib/syslinux/poweroff.com "${WORKDIR}/iso/boot/syslinux/" || return 1 cp "${WORKDIR}/root-image/usr/lib/syslinux/poweroff.com" "${WORKDIR}/iso/syslinux/" || return 1
#sed "s|archisolabel=[^ ]*|archisolabel=${NAME}-${VER//./}|" -i ${WORKDIR}/iso/boot/pxelinux.cfg/default || return 1 #sed "s|archisolabel=[^ ]*|archisolabel=${NAME}-${VER//./}|" -i ${WORKDIR}/iso/boot/pxelinux.cfg/default || return 1
[ "$?" -ne 0 ] && echo -e "\e[01;31mbootloader Exiting due to error while copying bootloader\e[00m" && exit 1 [ "$?" -ne 0 ] && echo -e "\e[01;31mbootloader Exiting due to error while copying bootloader\e[00m" && exit 1
fi fi
Expand Down Expand Up @@ -247,9 +250,9 @@ build ()
[ ! ${QUIET} == "y" ] && echo "build: Saving to ${FULLNAME}-${edition}.${imagetype}" [ ! ${QUIET} == "y" ] && echo "build: Saving to ${FULLNAME}-${edition}.${imagetype}"
[ ! ${QUIET} == "y" ] && echo "build: Starting build, this will take some time" [ ! ${QUIET} == "y" ] && echo "build: Starting build, this will take some time"
if [ ${VERBOSE} == "y" ]; then if [ ${VERBOSE} == "y" ]; then
mkarchiso -f -v -L "${NAME}-${VER//./}" -P "Linux-Gamers <live.linux-gamers.net>" -A "live.linux-gamers" -p "${BOOTLOADER}" "${imagetype}" "${WORKDIR}" "${FULLNAME}-${edition}.${imagetype}" mkarchiso -D ${INSTALL_DIR} -f -v -L "${NAME}-${VER//./}" -P "Linux-Gamers <live.linux-gamers.net>" -A "live.linux-gamers" -p "${BOOTLOADER}" "${imagetype}" "${WORKDIR}" "${FULLNAME}-${edition}.${imagetype}"
else else
mkarchiso -f -v -L "${NAME}-${VER//./}" -P "Linux-Gamers <live.linux-gamers.net>" -A "live.linux-gamers" -p "${BOOTLOADER}" "${imagetype}" "${WORKDIR}" "${FULLNAME}-${edition}.${imagetype}" &> /dev/null mkarchiso -D ${INSTALL_DIR} -f -v -L "${NAME}-${VER//./}" -P "Linux-Gamers <live.linux-gamers.net>" -A "live.linux-gamers" -p "${BOOTLOADER}" "${imagetype}" "${WORKDIR}" "${FULLNAME}-${edition}.${imagetype}" &> /dev/null
fi fi
[ "$?" -ne 0 ] && echo -e "\e[01;31mbuild: Exiting due to error while running mkarchiso\e[00m" && exit 1 [ "$?" -ne 0 ] && echo -e "\e[01;31mbuild: Exiting due to error while running mkarchiso\e[00m" && exit 1
[ ! ${QUIET} == "y" ] && echo "===== Finished building final image for target: ${TARGET} =====" [ ! ${QUIET} == "y" ] && echo "===== Finished building final image for target: ${TARGET} ====="
Expand Down
24 changes: 13 additions & 11 deletions pacman.conf
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ HoldPkg = pacman glibc
# If upgrades are available for these packages they will be asked for first # If upgrades are available for these packages they will be asked for first
SyncFirst = pacman SyncFirst = pacman
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#XferCommand = /usr/bin/curl %u > %o #XferCommand = /usr/bin/curl -C - -f %u > %o
#CleanMethod = KeepInstalled #CleanMethod = KeepInstalled
Architecture = auto


# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg = #IgnorePkg =
Expand All @@ -28,11 +29,11 @@ SyncFirst = pacman
#NoExtract = #NoExtract =


# Misc options (all disabled by default) # Misc options (all disabled by default)
#NoPassiveFtp
#UseSyslog #UseSyslog
#ShowSize #ShowSize
#UseDelta #UseDelta
#TotalDownload #TotalDownload
#CheckSpace


# #
# REPOSITORIES # REPOSITORIES
Expand All @@ -42,6 +43,7 @@ SyncFirst = pacman
# - repositories listed first will take precedence when packages # - repositories listed first will take precedence when packages
# have identical names, regardless of version number # have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo # - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
# #
# Repository entries are of the format: # Repository entries are of the format:
# [repo-name] # [repo-name]
Expand All @@ -62,22 +64,22 @@ SyncFirst = pacman
Server = file:///home/svenstaro/prj/lglive/localrepo/ Server = file:///home/svenstaro/prj/lglive/localrepo/


[core] [core]
Server = http://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/i686 Server = http://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/$arch
Server = http://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/i686 Server = http://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/$arch


[extra] [extra]
Server = http://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/i686 Server = http://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/$arch
Server = http://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/i686 Server = http://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/$arch


[community] [community]
Server = http://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/i686 Server = http://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/$arch
Server = http://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/i686 Server = http://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/$arch


[arch-games] [arch-games]
Server = http://pseudoform.org/arch-games/games/i686/ Server = http://pseudoform.org/arch-games/games/$arch


[archlinuxfr] [archlinuxfr]
Server = http://repo.archlinux.fr/i686 Server = http://repo.archlinux.fr/$arch


[catalyst] [catalyst]
Server = http://dl.dropbox.com/u/4321633/repo/catalyst/i686/ Server = http://catalyst.apocalypsus.net/repo/catalyst/$arch

0 comments on commit a3f051a

Please sign in to comment.