Compare commits
22 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ac6d269a64 | |||
| 59bec45449 | |||
| 164032088a | |||
| 2870866232 | |||
| b2c9fc731a | |||
| 0e121285bf | |||
| bd11e3e9ec | |||
| cbde8105c1 | |||
| 6f33687230 | |||
| 24409fe287 | |||
| 7bf72d3987 | |||
| 559e989e1b | |||
| 7ffa278b19 | |||
| 65200c2a00 | |||
| 79a87e4789 | |||
| e2a5ef10eb | |||
| 21dccef17c | |||
| c6f5a880c5 | |||
| fa5a962552 | |||
| 0036055330 | |||
| 8b351731bd | |||
| c6dd840e43 |
@@ -85,7 +85,7 @@ CHROOTDIR_GLOB="${CHROOTDIR}"
|
|||||||
BUILDDIR_GLOB="${BUILDDIR}"
|
BUILDDIR_GLOB="${BUILDDIR}"
|
||||||
|
|
||||||
# Set the version.
|
# Set the version.
|
||||||
VERSION="$(git describe --abbrev=0 --tags)-$(git rev-parse --short --verify HEAD)"
|
BUILDVERSION="$(git describe --abbrev=0 --tags)-$(git rev-parse --short --verify HEAD)"
|
||||||
BUILD="$(cat BUILDNO)"
|
BUILD="$(cat BUILDNO)"
|
||||||
BUILD="$(expr ${BUILD} + 1)"
|
BUILD="$(expr ${BUILD} + 1)"
|
||||||
echo ${BUILD} > ./BUILDNO
|
echo ${BUILD} > ./BUILDNO
|
||||||
@@ -104,7 +104,7 @@ set -e
|
|||||||
USERNAME_REAL="$(grep ${BUILD_USERNAME} /etc/passwd | cut -f5 -d':')"
|
USERNAME_REAL="$(grep ${BUILD_USERNAME} /etc/passwd | cut -f5 -d':')"
|
||||||
|
|
||||||
cat > ${BASEDIR}/VERSION_INFO.txt << EOF
|
cat > ${BASEDIR}/VERSION_INFO.txt << EOF
|
||||||
Version: ${VERSION}
|
Version: ${BUILDVERSION}
|
||||||
Build: ${BUILD}
|
Build: ${BUILD}
|
||||||
Time: ${BUILDTIME}
|
Time: ${BUILDTIME}
|
||||||
Machine: ${BUILD_MACHINE}
|
Machine: ${BUILD_MACHINE}
|
||||||
|
|||||||
33
docs/FAQ
Normal file
33
docs/FAQ
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
BDisk Frequently Asked(/Unasked) Questions
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
0.) Why does it take so long to build?
|
||||||
|
1.) Why is the generated ISO file so big?
|
||||||
|
2.) How do I find the version/release/etc. number of an ISO?
|
||||||
|
|
||||||
|
|
||||||
|
=========================================================
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
0.) WHY DOES IT TAKE SO LONG TO BUILD?
|
||||||
|
A: This typically occurs when you're building from within a LiveCD/LiveUSB situation, in a VM/container/etc., or on a headless server.
|
||||||
|
If this is the case, you may run into what appears to be "stalling", especially while keys are generating for the chroots.
|
||||||
|
Thankfully, there is an easy fix. You can install the "haveged"(http://www.issihosts.com/haveged/) software and run it. This will
|
||||||
|
show an immediate and non-negligible improvement for the above contexts. If you have extra power to throw at it (or are using a dedicated build box)
|
||||||
|
as well, I recommend enabling I_AM_A_RACECAR in your build.conf. BDisk will then be more aggressive with its resource consumption.
|
||||||
|
|
||||||
|
|
||||||
|
1.) WHY IS THE GENERATED ISO FILE SO BIG?
|
||||||
|
A: You may have enabled a LOT of packages in extra/packages.(32|64|both). Or you're using the default set of packages, which tries to include a LOT
|
||||||
|
of different (and in some cases, redundant) packages for widespread utilization and usage. In addition, keep in mind that BDisk builds a single ISO
|
||||||
|
that can be used on both i686 architectures AND full x86_64 architectures ("AMD64" as you may sometimes see it referenced). Because it doesn't cheat
|
||||||
|
and just use a 64-bit kernel with a 32-bit userland, it needs two different squash images on each ISO- one for 32-bit userland and one for 64-bit
|
||||||
|
userland.
|
||||||
|
|
||||||
|
2.) HOW DO I FIND THE VERSION/RELEASE/ETC. NUMBER OF AN ISO?
|
||||||
|
A: This can be found in a multitude of places. The full-size ISO file (iso/<distname>-<git tag>-<git rev number>-(32|64|any).iso) should have the
|
||||||
|
version right in the file name. If you want more detailed information (or perhaps you renamed the file), you can mount the ISO as loopback in GNU/Linux,
|
||||||
|
*BSD, or Mac OS X and check /path/to/mounted/iso/VERSION_INTO.txt. Lastly, within the runtime itself (especially handy if booting via iPXE), you can
|
||||||
|
check /root/VERSION_INFO.txt within the running live environment.
|
||||||
@@ -23,12 +23,14 @@
|
|||||||
## Building ##
|
## Building ##
|
||||||
|
|
||||||
-WISH: Better logging[0]
|
-WISH: Better logging[0]
|
||||||
|
-WISH: signing for secureboot releases (PreLoader and gummiboot handle this okay, but require manual intervention
|
||||||
-use manual chrooting functions ONLY if distro not detected as arch. if /usr/bin/systemd-nspawn exists, use that instead
|
-use manual chrooting functions ONLY if distro not detected as arch. if /usr/bin/systemd-nspawn exists, use that instead
|
||||||
--does arch-chroot work across all distros? see https://wiki.archlinux.org/index.php/Install_bundled_32-bit_system_in_Arch64 and https://wiki.archlinux.org/index.php/Chroot
|
--does arch-chroot work across all distros? see https://wiki.archlinux.org/index.php/Install_bundled_32-bit_system_in_Arch64 and https://wiki.archlinux.org/index.php/Chroot
|
||||||
--i think this might be unnecessary. testing across other major distros is necessary, but i think i can just use the chroot'd arch-chroot
|
--i think this might be unnecessary. testing across other major distros is necessary, but i think i can just use the chroot'd arch-chroot
|
||||||
-tweak build.conf (and build.conf.sample) to source the pwd and set as BASEDIR ***if*** the project resources are present in pwd, otherwise throw warning
|
-tweak build.conf (and build.conf.sample) to source the pwd and set as BASEDIR ***if*** the project resources are present in pwd, otherwise throw warning
|
||||||
--this is half-done;PWD is currently used by default.
|
--this is half-done;PWD is currently used by default.
|
||||||
-does gummiboot? loader? wtfever it's called support splash backgrounds? can i implement that differently somehow?
|
-does gummiboot? loader? wtfever it's called support splash backgrounds? can i implement that differently somehow?
|
||||||
|
--yes, see e.g. https://www.reddit.com/r/archlinux/comments/3bwgf0/where_put_the_splasharchbmp_to_splash_screen_boot/
|
||||||
-strip out/remove unnecessary and orphan packages (e.g. gcc, make, automake, etc.)
|
-strip out/remove unnecessary and orphan packages (e.g. gcc, make, automake, etc.)
|
||||||
-incorporate iPXE tweaks:
|
-incorporate iPXE tweaks:
|
||||||
--http://ipxe.org/crypto
|
--http://ipxe.org/crypto
|
||||||
@@ -39,8 +41,12 @@
|
|||||||
--what distros are supported?
|
--what distros are supported?
|
||||||
--automatically install what we need for buildtime
|
--automatically install what we need for buildtime
|
||||||
---need to finish pkg lists and then test, but meta files should be done as well as lib script
|
---need to finish pkg lists and then test, but meta files should be done as well as lib script
|
||||||
--hardcode list of runtime (e.g. live media) dependencies (e.g. openssh, vim, etc.)
|
-enable mirror= kernel commandline.
|
||||||
--...and create separate list for after-the-fact e.g. goodies
|
--if mirror_(NAME) is present, use that as repo name.
|
||||||
|
--if it starts with /, treat as mirrorlist (Include); otherwise use Server =
|
||||||
|
--if it has mirror_SIG-X, set signature options e.g. _SIG-N would be "SigLevel = Never"
|
||||||
|
-iPXE background support. sed -rf "${BASEDIR}/src/ipxe_local/script.sed" ${SRCDIR}/ipxe/src/config/general.h ; sed -rf "${BASEDIR}/src/ipxe_local/script2.sed" ${SRCDIR}/ipxe/src/config/console.h
|
||||||
|
--note that iPXE VESAFB console is not (yet) supported in EFI, so this is on hold.
|
||||||
|
|
||||||
## Split into Separate Tools CD ##
|
## Split into Separate Tools CD ##
|
||||||
|
|
||||||
Binary file not shown.
BIN
extra/bootstrap/apacman-1.9-1-any.pkg.tar.xz
Normal file
BIN
extra/bootstrap/apacman-1.9-1-any.pkg.tar.xz
Normal file
Binary file not shown.
@@ -3,7 +3,7 @@
|
|||||||
abs
|
abs
|
||||||
acpi
|
acpi
|
||||||
#acpidump
|
#acpidump
|
||||||
afflib
|
#afflib
|
||||||
aircrack-ng
|
aircrack-ng
|
||||||
apr
|
apr
|
||||||
apr-util
|
apr-util
|
||||||
@@ -159,7 +159,8 @@ mcelog
|
|||||||
md5deep
|
md5deep
|
||||||
mdadm
|
mdadm
|
||||||
mdcrack
|
mdcrack
|
||||||
megaraid-cli
|
# superseded by storcli
|
||||||
|
#megaraid-cli
|
||||||
memtester
|
memtester
|
||||||
mfoc
|
mfoc
|
||||||
minicom
|
minicom
|
||||||
@@ -184,7 +185,8 @@ nmap
|
|||||||
nmon
|
nmon
|
||||||
ntfs-3g
|
ntfs-3g
|
||||||
ntfsfixboot
|
ntfsfixboot
|
||||||
nwipe
|
#nwipe #broken since they moved to github(?)
|
||||||
|
nwipe-git
|
||||||
obnam
|
obnam
|
||||||
open-iscsi
|
open-iscsi
|
||||||
openipmi
|
openipmi
|
||||||
@@ -253,6 +255,7 @@ smbclient
|
|||||||
s-nail
|
s-nail
|
||||||
socat
|
socat
|
||||||
#star ## do people even USE tape packups anymore?
|
#star ## do people even USE tape packups anymore?
|
||||||
|
storcli
|
||||||
strace
|
strace
|
||||||
stress
|
stress
|
||||||
sucrack
|
sucrack
|
||||||
@@ -308,6 +311,7 @@ xmlto
|
|||||||
xorg
|
xorg
|
||||||
xorg-drivers
|
xorg-drivers
|
||||||
xorg-xinit
|
xorg-xinit
|
||||||
|
xterm
|
||||||
zerofree
|
zerofree
|
||||||
zip
|
zip
|
||||||
zsh
|
zsh
|
||||||
|
|||||||
3
extra/pre-build.d/etc/customizepkg.d/dd_rhelp
Executable file
3
extra/pre-build.d/etc/customizepkg.d/dd_rhelp
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sed -i -e 's/build(/package(/g' ${1}
|
||||||
3
extra/pre-build.d/etc/customizepkg.d/lsiutil
Executable file
3
extra/pre-build.d/etc/customizepkg.d/lsiutil
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sed -re 's@^(source=\(").*$@\1https://github.com/kwilczynski/lsi/blob/master/lsiutil/LSIUtil_1.62.zip?raw=true")@g' ${1}
|
||||||
7
extra/pre-build.d/etc/customizepkg.d/whdd
Executable file
7
extra/pre-build.d/etc/customizepkg.d/whdd
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ ! -f "/usr/lib/libdialog.so" ]];
|
||||||
|
then
|
||||||
|
echo "Please run the following: sudo ln -s /usr/lib/libdialog.so.1.2 /usr/lib/libdialog.so"
|
||||||
|
echo "This package will fail to build otherwise."
|
||||||
|
fi
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
sed -i -e 's/any/x86_64/g' ${1}
|
sed -i -re "s/'any'/'i686' 'x86_64'/g" ${1}
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
apacman --noconfirm --noedit -S --needed customizepkg-scripting
|
apacman --noconfirm --noedit -S --needed customizepkg-scripting
|
||||||
|
ln -s /usr/lib/libdialog.so.1.2 /usr/lib/libdialog.so
|
||||||
|
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
|||||||
@@ -245,38 +245,39 @@ EOF
|
|||||||
for x in $(find ${CHROOTDIR64}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%.pacorig} ; done
|
for x in $(find ${CHROOTDIR64}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%.pacorig} ; done
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# preprocessing
|
# extra packages
|
||||||
sed -i -e '/base-devel/d ; /multilib-devel/d' ${BASEDIR}/extra/packages.*
|
sed -i -e '/base-devel/d ; /multilib-devel/d' ${BASEDIR}/extra/packages.{both,64}
|
||||||
# both
|
# both
|
||||||
echo "Installing extra common packages..."
|
echo "Installing extra common packages..."
|
||||||
PKGLIST=$(sed -e '/^[[:space:]]*#/d ; /^[[:space:]]*$/d' ${BASEDIR}/extra/packages.both | tr '\n' ' ')
|
PKGLIST=$(sed -e '/^[[:space:]]*#/d ; /^[[:space:]]*$/d' ${BASEDIR}/extra/packages.both | tr '\n' ' ')
|
||||||
for i in ${CHROOTDIR32} ${CHROOTDIR64};
|
for i in ${CHROOTDIR32} ${CHROOTDIR64};
|
||||||
do
|
do
|
||||||
echo "Running post-build tasks in ${i}..."
|
echo "Running post-build tasks in ${i}..."
|
||||||
|
chmod 700 ${i}/root/post-build.sh
|
||||||
${CHROOTCMD} ${i}/ "/root/post-build.sh" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
${CHROOTCMD} ${i}/ "/root/post-build.sh" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
for x in $(find ${i}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%%.pacorig} ; done
|
for x in $(find ${i}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%%.pacorig} ; done
|
||||||
set +e
|
set +e
|
||||||
${CHROOTCMD} ${i}/ /usr/bin/bash -c "apacman --noconfirm --noedit --skipinteg -S --needed linux" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
${CHROOTCMD} ${i}/ /usr/bin/bash -c "apacman --noconfirm --noedit --skipinteg -S --needed linux" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
cp -a ${i}/boot/vmlinuz-linux ${i}/boot/vmlinuz-linux-${PNAME}
|
cp -a ${i}/boot/vmlinuz-linux ${i}/boot/vmlinuz-linux-${DISTNAME}
|
||||||
cp -a ${i}/boot/initramfs-linux.img ${i}/boot/initramfs-linux-${PNAME}.img
|
cp -a ${i}/boot/initramfs-linux.img ${i}/boot/initramfs-linux-${DISTNAME}.img
|
||||||
set -e
|
set -e
|
||||||
for x in $(find ${i}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%%.pacorig} ; done
|
for x in $(find ${i}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%%.pacorig} ; done
|
||||||
# Uncomment if you wish to use the mkpasswd binary from within the chroot...
|
# Uncomment if you wish to use the mkpasswd binary from within the chroot...
|
||||||
#${CHROOTCMD} ${i}/ bash -c "apacman --noconfirm --noedit --skipinteg -S --needed debian-whois-mkpasswd" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
#${CHROOTCMD} ${i}/ bash -c "apacman --noconfirm --noedit --skipinteg -S --needed debian-whois-mkpasswd" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
#for x in $(find ${i}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%%.pacorig} ; done
|
#for x in $(find ${i}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%%.pacorig} ; done
|
||||||
echo -n "Regular packages..."
|
echo -n "Regular packages..."
|
||||||
set +e
|
|
||||||
${CHROOTCMD} ${i}/ bash -c "yes '' | apacman --noconfirm --noedit --skipinteg -S --needed ${PKGLIST}" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
${CHROOTCMD} ${i}/ bash -c "yes '' | apacman --noconfirm --noedit --skipinteg -S --needed ${PKGLIST}" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
|
set +e
|
||||||
for x in $(find ${i}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%%.pacorig} ; done
|
for x in $(find ${i}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%%.pacorig} ; done
|
||||||
# User creation
|
|
||||||
set -e
|
set -e
|
||||||
|
# User creation
|
||||||
echo -n "...Creating ${REGUSR} user..."
|
echo -n "...Creating ${REGUSR} user..."
|
||||||
${CHROOTCMD} ${i}/ useradd -m -s /bin/bash -c "Default user" ${REGUSR} >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
${CHROOTCMD} ${i}/ useradd -m -s /bin/bash -c "Default user" ${REGUSR} >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
${CHROOTCMD} ${i}/ usermod -aG users,games,video,audio ${REGUSR} >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
${CHROOTCMD} ${i}/ usermod -aG users,games,video,audio ${REGUSR} >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
${CHROOTCMD} ${i}/ passwd -d ${REGUSR} >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
${CHROOTCMD} ${i}/ passwd -d ${REGUSR} >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
mkdir -p ${i}/etc/sudoers.d ; chmod 750 ${i}/etc/sudoers.d
|
mkdir -p ${i}/etc/sudoers.d ; chmod 750 ${i}/etc/sudoers.d
|
||||||
echo "${REGUSR} ALL=(ALL) ALL" >> ${i}/etc/sudoers.d/${REGUSR}
|
printf "Defaults:${REGUSR} \041lecture\n${REGUSR} ALL=(ALL) ALL\n" >> ${i}/etc/sudoers.d/${REGUSR}
|
||||||
if [ -n "${REGUSR_PASS}" ];
|
if [[ -n "${REGUSR_PASS}" && "${REGUSR_PASS}" != '{[BLANK]}' ]];
|
||||||
then
|
then
|
||||||
#${CHROOTCMD} ${i}/ "/usr/bin/echo ${REGUSR}:${REGUSR_PASS} | chpasswd -e" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
#${CHROOTCMD} ${i}/ "/usr/bin/echo ${REGUSR}:${REGUSR_PASS} | chpasswd -e" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
sed -i -e "s|^${REGUSR}::|${REGUSR}:${REGUSR_PASS}:|g" ${i}/etc/shadow
|
sed -i -e "s|^${REGUSR}::|${REGUSR}:${REGUSR_PASS}:|g" ${i}/etc/shadow
|
||||||
@@ -286,7 +287,7 @@ EOF
|
|||||||
else
|
else
|
||||||
${CHROOTCMD} ${i}/ usermod -L ${REGUSR} >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
${CHROOTCMD} ${i}/ usermod -L ${REGUSR} >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
fi
|
fi
|
||||||
if [ -n "${ROOT_PASS}" ];
|
if [[ -n "${ROOT_PASS}" && "${ROOT_PASS}" != '{[BLANK]}' ]];
|
||||||
then
|
then
|
||||||
#${CHROOTCMD} ${i}/ "/usr/bin/echo root:${ROOT_PASS} | chpasswd -e" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
#${CHROOTCMD} ${i}/ "/usr/bin/echo root:${ROOT_PASS} | chpasswd -e" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
sed -i -e "s|^root::|root:${ROOT_PASS}:|g" ${i}/etc/shadow
|
sed -i -e "s|^root::|root:${ROOT_PASS}:|g" ${i}/etc/shadow
|
||||||
@@ -306,7 +307,7 @@ EOF
|
|||||||
set +e
|
set +e
|
||||||
for x in $(find ${i}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%.pacorig} ; done
|
for x in $(find ${i}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%.pacorig} ; done
|
||||||
${CHROOTCMD} ${i}/ /usr/bin/bash -c "mkinitcpio -p linux" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
${CHROOTCMD} ${i}/ /usr/bin/bash -c "mkinitcpio -p linux" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
cp -a ${i}/boot/initramfs-linux.img ${i}/boot/initramfs-linux-${PNAME}.img
|
cp -a ${i}/boot/initramfs-linux.img ${i}/boot/initramfs-linux-${DISTNAME}.img
|
||||||
set -e
|
set -e
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,7 @@ function centos_is_stupid {
|
|||||||
|
|
||||||
if [[ "${HOST_DIST}" == "CentOS" || "${HOST_DIST}" == "RHEL" ]];
|
if [[ "${HOST_DIST}" == "CentOS" || "${HOST_DIST}" == "RHEL" ]];
|
||||||
then
|
then
|
||||||
rpm -qa | egrep -q "^xorriso-[0-9]"
|
if [[ "$(rpm -qa | egrep -q '^xorriso-[0-9]')" != "0" ]];
|
||||||
if [[ "${?}" != "0" ]];
|
|
||||||
then
|
then
|
||||||
# Download/install the proper xorriso
|
# Download/install the proper xorriso
|
||||||
EL_VER="$(rpm -qa coreutils | sed -re 's/^coreutils-[0-9.-]*el([0-9])*.*$/\1/g')"
|
EL_VER="$(rpm -qa coreutils | sed -re 's/^coreutils-[0-9.-]*el([0-9])*.*$/\1/g')"
|
||||||
@@ -17,7 +16,9 @@ function centos_is_stupid {
|
|||||||
XORRISO_RPM=$(curl -s http://pkgs.repoforge.org/xorriso/ | egrep "\"xorriso-[0-9.-]*el${EL_VER}.rf.x86_64.rpm\"" | sed -re "s/^.*\"(xorriso[0-9.-]*el${EL_VER}.rf.x86_64.rpm).*$/\1/g")
|
XORRISO_RPM=$(curl -s http://pkgs.repoforge.org/xorriso/ | egrep "\"xorriso-[0-9.-]*el${EL_VER}.rf.x86_64.rpm\"" | sed -re "s/^.*\"(xorriso[0-9.-]*el${EL_VER}.rf.x86_64.rpm).*$/\1/g")
|
||||||
echo "Since you're using either CentOS or RHEL, we need to install xorriso directly from an RPM. Please wait while we do this..."
|
echo "Since you're using either CentOS or RHEL, we need to install xorriso directly from an RPM. Please wait while we do this..."
|
||||||
curl -sLo /tmp/${XORRISO_RPM} http://pkgs.repoforge.org/xorriso/${XORRISO_RPM}
|
curl -sLo /tmp/${XORRISO_RPM} http://pkgs.repoforge.org/xorriso/${XORRISO_RPM}
|
||||||
|
set +e
|
||||||
yum -y install /tmp/${XORRISO_RPM} >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
yum -y install /tmp/${XORRISO_RPM} >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
|
set -e
|
||||||
echo "Done."
|
echo "Done."
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
@@ -28,8 +29,7 @@ function centos_is_stupid {
|
|||||||
# UGH. And you know what? Fuck SUSE too.
|
# UGH. And you know what? Fuck SUSE too.
|
||||||
if [[ "${HOST_DIST}" == "openSUSE" || "${HOST_DIST}" == "SUSE" ]];
|
if [[ "${HOST_DIST}" == "openSUSE" || "${HOST_DIST}" == "SUSE" ]];
|
||||||
then
|
then
|
||||||
rpm -qa | egrep -q "^xorriso-[0-9]"
|
if [[ "$(rpm -qa | egrep -q '^xorriso-[0-9]')" != "0" ]];
|
||||||
if [[ "${?}" != "0" ]];
|
|
||||||
then
|
then
|
||||||
# Download/install the proper xorriso
|
# Download/install the proper xorriso
|
||||||
source /etc/os-release
|
source /etc/os-release
|
||||||
@@ -37,7 +37,10 @@ function centos_is_stupid {
|
|||||||
XORRISO_RPM=$(curl -s "http://software.opensuse.org/download.html?project=home%3AKnolleblau&package=xorriso" | egrep "/openSUSE_${SUSE_VER}/x86_64/xorriso-[0-9.-]" | tail -n1 | sed -re 's|^.*x86_64/(xorriso-[0-9.-]*.x86_64.rpm).*$|\1|g')
|
XORRISO_RPM=$(curl -s "http://software.opensuse.org/download.html?project=home%3AKnolleblau&package=xorriso" | egrep "/openSUSE_${SUSE_VER}/x86_64/xorriso-[0-9.-]" | tail -n1 | sed -re 's|^.*x86_64/(xorriso-[0-9.-]*.x86_64.rpm).*$|\1|g')
|
||||||
echo "Since you're using openSUSE or SLED/SLES, we need to install xorriso directly from an RPM. Please wait while we do this..."
|
echo "Since you're using openSUSE or SLED/SLES, we need to install xorriso directly from an RPM. Please wait while we do this..."
|
||||||
curl -sLo /tmp/${XORRISO_RPM} "http://download.opensuse.org/repositories/home:/Knolleblau/openSUSE_${SUSE_VER}/x86_64/${XORRISO_RPM}"
|
curl -sLo /tmp/${XORRISO_RPM} "http://download.opensuse.org/repositories/home:/Knolleblau/openSUSE_${SUSE_VER}/x86_64/${XORRISO_RPM}"
|
||||||
|
cp /etc/zypp/zypp.conf /etc/zypp/zypp.conf_BAK."${$}"
|
||||||
|
echo 'pkg_gpgcheck = no' >> /etc/zypp/zypp.conf
|
||||||
zypper install --no-confirm -l /tmp/${XORRISO_RPM} >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
zypper install --no-confirm -l /tmp/${XORRISO_RPM} >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
|
mv -f /etc/zypp/zypp.conf_BAK."${$}" /etc/zypp/zypp.conf
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
|
||||||
echo
|
echo
|
||||||
@@ -64,6 +67,7 @@ function centos_is_stupid {
|
|||||||
echo "Please ensure you are connected to the Internet/have repositories configured correctly."
|
echo "Please ensure you are connected to the Internet/have repositories configured correctly."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
set -e
|
||||||
fi
|
fi
|
||||||
|
|
||||||
zypper search binutils-devel | egrep -q '^[[:space:]]*|[[:space:]]*binutils-devel[[:space:]]*'
|
zypper search binutils-devel | egrep -q '^[[:space:]]*|[[:space:]]*binutils-devel[[:space:]]*'
|
||||||
|
|||||||
@@ -75,14 +75,19 @@ function will_it_blend () {
|
|||||||
# and now we copy stuff into the live directories
|
# and now we copy stuff into the live directories
|
||||||
echo "[${ARCHSUFFIX}-bit] Copying files for PXE, and ISO building, please be patient."
|
echo "[${ARCHSUFFIX}-bit] Copying files for PXE, and ISO building, please be patient."
|
||||||
#rm -rf ${TEMPDIR}/*
|
#rm -rf ${TEMPDIR}/*
|
||||||
|
if [ ! -f ${BASEDIR}/extra/${UXNAME}.png ];
|
||||||
|
then
|
||||||
|
cat ${BASEDIR}/extra/bdisk.png > ${BASEDIR}/extra/${UXNAME}.png
|
||||||
|
fi
|
||||||
cp -af ${BASEDIR}/extra/${UXNAME}.png ${TEMPDIR}/.
|
cp -af ${BASEDIR}/extra/${UXNAME}.png ${TEMPDIR}/.
|
||||||
cp -af ${BASEDIR}/extra/${UXNAME}.png ${TFTPDIR}/.
|
cp -af ${BASEDIR}/extra/${UXNAME}.png ${TFTPDIR}/.
|
||||||
mkdir -p ${TEMPDIR}/boot
|
mkdir -p ${TEMPDIR}/boot
|
||||||
cp -af ${CHROOTDIR}/boot/initramfs-linux-${PNAME}.img ${TEMPDIR}/boot/${UXNAME}.${ARCHSUFFIX}.img
|
cp -af ${CHROOTDIR}/boot/initramfs-linux-${DISTNAME}.img ${TEMPDIR}/boot/${UXNAME}.${ARCHSUFFIX}.img
|
||||||
cp -af ${CHROOTDIR}/boot/vmlinuz-linux-${PNAME} ${TEMPDIR}/boot/${UXNAME}.${ARCHSUFFIX}.kern
|
cp -af ${CHROOTDIR}/boot/vmlinuz-linux-${DISTNAME} ${TEMPDIR}/boot/${UXNAME}.${ARCHSUFFIX}.kern
|
||||||
cp -af ${CHROOTDIR}/boot/initramfs-linux-${PNAME}.img ${TFTPDIR}/${UXNAME}.${ARCHSUFFIX}.img
|
cp -af ${CHROOTDIR}/boot/initramfs-linux-${DISTNAME}.img ${TFTPDIR}/${UXNAME}.${ARCHSUFFIX}.img
|
||||||
cp -af ${CHROOTDIR}/boot/vmlinuz-linux-${PNAME} ${TFTPDIR}/${UXNAME}.${ARCHSUFFIX}.kern
|
cp -af ${CHROOTDIR}/boot/vmlinuz-linux-${DISTNAME} ${TFTPDIR}/${UXNAME}.${ARCHSUFFIX}.kern
|
||||||
cp -af ${ARCHBOOT}/* ${HTTPDIR}/${DISTNAME}/.
|
cp -af ${ARCHBOOT}/* ${HTTPDIR}/${DISTNAME}/.
|
||||||
|
cp -af ${TFTPDIR}/* ${HTTPDIR}/.
|
||||||
chown -R ${HTTPUSR}:${HTTPGRP} ${HTTPDIR}
|
chown -R ${HTTPUSR}:${HTTPGRP} ${HTTPDIR}
|
||||||
chown ${TFTPUSR}:${TFTPGRP} ${TFTPDIR}/${UXNAME}.*
|
chown ${TFTPUSR}:${TFTPGRP} ${TFTPDIR}/${UXNAME}.*
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,15 +5,15 @@ function yo_dj () {
|
|||||||
ARCH="${1}"
|
ARCH="${1}"
|
||||||
echo "Building the actual .iso image. This may take a while."
|
echo "Building the actual .iso image. This may take a while."
|
||||||
#im_batman ## WHYTF IS THIS HERE?!
|
#im_batman ## WHYTF IS THIS HERE?!
|
||||||
ISOFILENAME="${UXNAME}-${VERSION}.iso"
|
ISOFILENAME="${UXNAME}-${BUILDVERSION}.iso"
|
||||||
#MINIFILENAME="${UXNAME}-${VERSION}-mini.iso"
|
#MINIFILENAME="${UXNAME}-${BUILDVERSION}-mini.iso"
|
||||||
MINIFILENAME="${UXNAME}-mini.iso"
|
MINIFILENAME="${UXNAME}-mini.iso"
|
||||||
USBFILENAME="${UXNAME}-mini.usb.img"
|
USBFILENAME="${UXNAME}-mini.usb.img"
|
||||||
if [[ "${MULTIARCH}" == "y" ]];
|
if [[ "${MULTIARCH}" == "y" ]];
|
||||||
then
|
then
|
||||||
ISOFILENAME="${UXNAME}-${VERSION}-any.iso"
|
ISOFILENAME="${UXNAME}-${BUILDVERSION}-any.iso"
|
||||||
else
|
else
|
||||||
ISOFILENAME="${UXNAME}-${VERSION}-${ARCH}.iso"
|
ISOFILENAME="${UXNAME}-${BUILDVERSION}-${ARCH}.iso"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${I_AM_A_RACECAR}" == "y" ]];
|
if [[ "${I_AM_A_RACECAR}" == "y" ]];
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ function mentos {
|
|||||||
RACECAR_CHK=""
|
RACECAR_CHK=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n $(find ${BASEDIR}/extra/pre-build.d/ -type f -newer ${BASEDIR}/root.x86_64/boot/vmlinuz-linux-${PNAME}) ]];
|
if [[ -n $(find ${BASEDIR}/extra/pre-build.d/ -type f -newer ${BASEDIR}/root.x86_64/boot/vmlinuz-linux-${DISTNAME}) ]];
|
||||||
then
|
then
|
||||||
touch ${LOCKFILE}
|
touch ${LOCKFILE}
|
||||||
sleep 2
|
sleep 2
|
||||||
@@ -36,7 +36,7 @@ function mentos {
|
|||||||
for i in ${CHROOTDIR32} ${CHROOTDIR64};
|
for i in ${CHROOTDIR32} ${CHROOTDIR64};
|
||||||
do
|
do
|
||||||
echo -n "...Packages installing/upgrading to ${i}..."
|
echo -n "...Packages installing/upgrading to ${i}..."
|
||||||
local INSTKERN=$(file ${i}/boot/vmlinuz-linux-${PNAME} | awk '{print $9}' | cut -f1 -d"-")
|
local INSTKERN=$(file ${i}/boot/vmlinuz-linux-${DISTNAME} | awk '{print $9}' | cut -f1 -d"-")
|
||||||
local MIRROR=$(egrep '^Server' ${i}/etc/pacman.d/mirrorlist | head -n1 | sed -e 's/^Server\ =\ //g ; s#$repo.*#core/os/x86_64/#g')
|
local MIRROR=$(egrep '^Server' ${i}/etc/pacman.d/mirrorlist | head -n1 | sed -e 's/^Server\ =\ //g ; s#$repo.*#core/os/x86_64/#g')
|
||||||
local NEWKERN=$(curl -s "${MIRROR}" | grep linux | awk '{print $3}' | cut -f2 -d\" | egrep '^linux-[0-9].*pkg.tar.xz$' | cut -f2 -d"-")
|
local NEWKERN=$(curl -s "${MIRROR}" | grep linux | awk '{print $3}' | cut -f2 -d\" | egrep '^linux-[0-9].*pkg.tar.xz$' | cut -f2 -d"-")
|
||||||
|
|
||||||
@@ -45,8 +45,8 @@ function mentos {
|
|||||||
for x in $(find ${i}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%.pacorig} ; done
|
for x in $(find ${i}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%.pacorig} ; done
|
||||||
${CHROOTCMD} ${i}/ /usr/bin/bash -c "mkinitcpio -p linux" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
${CHROOTCMD} ${i}/ /usr/bin/bash -c "mkinitcpio -p linux" >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
#${CHROOTCMD} ${i}/ bash -c "apacman --noconfirm --noedit --skipinteg -S --needed ${PKGLIST}"
|
#${CHROOTCMD} ${i}/ bash -c "apacman --noconfirm --noedit --skipinteg -S --needed ${PKGLIST}"
|
||||||
cp -a ${i}/boot/vmlinuz-linux ${i}/boot/vmlinuz-linux-${PNAME}
|
cp -a ${i}/boot/vmlinuz-linux ${i}/boot/vmlinuz-linux-${DISTNAME}
|
||||||
cp -a ${i}/boot/initramfs-linux.img ${i}/boot/initramfs-linux-${PNAME}.img
|
cp -a ${i}/boot/initramfs-linux.img ${i}/boot/initramfs-linux-${DISTNAME}.img
|
||||||
echo "Done."
|
echo "Done."
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
NAME='CentOS'
|
NAME='CentOS'
|
||||||
# Currently fails on installing software *inside* the chroot. Will troubleshoot and restore when figured out.
|
# Currently fails on installing software *inside* the chroot. Will troubleshoot and restore when figured out.
|
||||||
SUPPORTED='untested'
|
SUPPORTED='yes'
|
||||||
CHECK_METHOD='egrep "^CentOS" /etc/redhat-release'
|
CHECK_METHOD='egrep "^CentOS" /etc/redhat-release'
|
||||||
PKG_MGR='yum -y install ${pkgname}'
|
PKG_MGR='yum -y install ${pkgname}'
|
||||||
PRE_RUN='none'
|
PRE_RUN='none'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
NAME='Debian'
|
NAME='Debian'
|
||||||
SUPPORTED='untested'
|
SUPPORTED='yes'
|
||||||
CHECK_METHOD='egrep "^NAME=\"Debian\ GNU/Linux\"$" /etc/os-release'
|
CHECK_METHOD='egrep "^NAME=\"Debian\ GNU/Linux\"$" /etc/os-release'
|
||||||
PKG_MGR='apt-get -y install ${pkgname}'
|
PKG_MGR='apt-get -y install ${pkgname}'
|
||||||
PRE_RUN='apt-get update'
|
PRE_RUN='apt-get update'
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ libiberty-dev
|
|||||||
libisoburn1
|
libisoburn1
|
||||||
lynx
|
lynx
|
||||||
liblzma5
|
liblzma5
|
||||||
liblsma-dev
|
liblzma-dev
|
||||||
make
|
make
|
||||||
mtools
|
mtools
|
||||||
patch
|
patch
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
NAME='Devuan'
|
NAME='Devuan'
|
||||||
SUPPORTED='yes'
|
SUPPORTED='no'
|
||||||
CHECK_METHOD='egrep "^NAME=\"Devuan\ GNU/Linux\"$" /etc/os-release'
|
CHECK_METHOD='egrep "^NAME=\"Devuan\ GNU/Linux\"$" /etc/os-release'
|
||||||
PKG_MGR='apt-get -y install ${pkgname}'
|
PKG_MGR='apt-get -y install ${pkgname}'
|
||||||
PRE_RUN='apt-get update'
|
PRE_RUN='apt-get update'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
NAME='Fedora'
|
NAME='Fedora'
|
||||||
SUPPORTED='untested'
|
SUPPORTED='yes'
|
||||||
CHECK_METHOD='egrep '^Fedora' /etc/redhat-release'
|
CHECK_METHOD='egrep '^Fedora' /etc/redhat-release'
|
||||||
PKG_MGR='dnf -y install ${pkgname}'
|
PKG_MGR='dnf -y install ${pkgname}'
|
||||||
PRE_RUN='none'
|
PRE_RUN='none'
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
binutils
|
binutils
|
||||||
binutils-devel
|
binutils-devel
|
||||||
curl
|
curl
|
||||||
|
dosfstools
|
||||||
gcc
|
gcc
|
||||||
git
|
git
|
||||||
libisofs
|
libisofs
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
NAME='Gentoo'
|
NAME='Gentoo'
|
||||||
SUPPORTED='untested'
|
SUPPORTED='yes'
|
||||||
CHECK_METHOD='egrep "^Gentoo\ Base\ System" /etc/gentoo-release'
|
CHECK_METHOD='egrep "^Gentoo\ Base\ System" /etc/gentoo-release'
|
||||||
PKG_MGR='emerge -q1Dn ${pkgname}'
|
PKG_MGR='emerge -q1Dn ${pkgname}'
|
||||||
PRE_RUN='emerge -q --sync'
|
PRE_RUN='emerge -q --sync'
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
sys-devel/binutils
|
sys-devel/binutils
|
||||||
net-misc/curl
|
net-misc/curl
|
||||||
|
sys-fs/dosfstools
|
||||||
sys-devel/gcc
|
sys-devel/gcc
|
||||||
dev-vcs/git
|
dev-vcs/git
|
||||||
dev-libs/libisoburn
|
dev-libs/libisoburn
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
NAME='Mageia'
|
NAME='Mageia'
|
||||||
SUPPORTED='untested'
|
SUPPORTED='yes'
|
||||||
CHECK_METHOD='egrep "^Mageia\ release\ " /etc/mageia-release'
|
CHECK_METHOD='egrep "^Mageia\ release\ " /etc/mageia-release'
|
||||||
PKG_MGR='urpmi --force --auto ${pkgname}'
|
PKG_MGR='urpmi --force --auto ${pkgname}'
|
||||||
PRE_RUN='urpmi.update -a'
|
PRE_RUN='urpmi.update -a'
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
NAME='Manjaro'
|
NAME='Manjaro'
|
||||||
SUPPORTED='untested'
|
SUPPORTED='yes'
|
||||||
CHECK_METHOD='egrep "^NAME=\"Manjaro Linux\"$" /etc/os-release'
|
CHECK_METHOD='egrep "^NAME=\"Manjaro Linux\"$" /etc/os-release'
|
||||||
PKG_MGR='pacman -S --needed --noconfirm ${pkgname}'
|
PKG_MGR='pacman -S --needed --noconfirm ${pkgname}'
|
||||||
PRE_RUN='pacman -Syyyu'
|
PRE_RUN='pacman -Syyy --noconfirm'
|
||||||
PKG_CHK='pacman -Q ${pkgname}'
|
PKG_CHK='pacman -Q ${pkgname}'
|
||||||
URL='https://manjaro.org/'
|
URL='https://manjaro.org/'
|
||||||
|
|
||||||
@@ -20,6 +20,7 @@ function distro_specific_tweaks {
|
|||||||
if [[ "${?}" == "0" ]];
|
if [[ "${?}" == "0" ]];
|
||||||
then
|
then
|
||||||
pacman -Rdd --noconfirm ${pkg_override} >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
pacman -Rdd --noconfirm ${pkg_override} >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
|
pacman -S --noconfirm ${pkg_override}-multilib >> "${LOGFILE}.${FUNCNAME}" 2>&1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
set -e
|
set -e
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
NAME='Mint'
|
NAME='Mint'
|
||||||
SUPPORTED='untested'
|
SUPPORTED='no'
|
||||||
CHECK_METHOD='egrep "^DESCRIPTION=\"Linux\ Mint\"" /etc/linuxmint/info'
|
# Needs non-systemd chroot method
|
||||||
|
CHECK_METHOD='egrep "^DESCRIPTION=\"Linux\ Mint" /etc/linuxmint/info'
|
||||||
PKG_MGR='apt-get -y install ${pkgname}'
|
PKG_MGR='apt-get -y install ${pkgname}'
|
||||||
PRE_RUN='apt-get -y update'
|
PRE_RUN='apt-get -y update'
|
||||||
PKG_CHK='dpkg-query -l ${pkgname}'
|
PKG_CHK='dpkg-query -l ${pkgname}'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
NAME='RHEL'
|
NAME='RHEL'
|
||||||
SUPPORTED='untested'
|
SUPPORTED='yes'
|
||||||
# Red Hat Enterprise Linux Server release 6.5 (Santiago)
|
# Red Hat Enterprise Linux Server release 6.5 (Santiago)
|
||||||
CHECK_METHOD='egrep "^Red\ Hat\ Enterprise\ Linux" /etc/redhat-release'
|
CHECK_METHOD='egrep "^Red\ Hat\ Enterprise\ Linux" /etc/redhat-release'
|
||||||
PKG_MGR='yum -y install'
|
PKG_MGR='yum -y install'
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
binutils
|
binutils
|
||||||
binutils-devel
|
binutils-devel
|
||||||
curl
|
curl
|
||||||
|
dosfstools
|
||||||
gcc
|
gcc
|
||||||
git
|
git
|
||||||
libisofs
|
libisofs
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
NAME='SUSE'
|
NAME='SUSE'
|
||||||
SUPPORTED='untested'
|
SUPPORTED='yes'
|
||||||
# Both SLED and SLES. We can probably safely combine them.
|
# Both SLED and SLES. We can probably safely combine them.
|
||||||
CHECK_METHOD='egrep "^NAME=\"SLE(D|S)\"$" /etc/os-release'
|
CHECK_METHOD='egrep "^NAME=\"SLE(D|S)\"$" /etc/os-release'
|
||||||
PKG_MGR='zypper install --no-confirm -l ${pkgname}'
|
PKG_MGR='zypper install --no-confirm -l ${pkgname}'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
NAME='Ubuntu'
|
NAME='Ubuntu'
|
||||||
SUPPORTED='untested'
|
SUPPORTED='yes'
|
||||||
CHECK_METHOD='egrep "^DISTRIB_ID=Ubuntu$" /etc/lsb-release'
|
CHECK_METHOD='egrep "^DISTRIB_ID=Ubuntu$" /etc/lsb-release'
|
||||||
PKG_MGR='apt-get -y install ${pkgname}'
|
PKG_MGR='apt-get -y install ${pkgname}'
|
||||||
PRE_RUN='apt-get -y update'
|
PRE_RUN='apt-get -y update'
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ libiberty-dev
|
|||||||
libisoburn1
|
libisoburn1
|
||||||
lynx
|
lynx
|
||||||
liblzma5
|
liblzma5
|
||||||
liblsma-dev
|
liblzma-dev
|
||||||
make
|
make
|
||||||
mtools
|
mtools
|
||||||
patch
|
patch
|
||||||
@@ -19,7 +19,6 @@ rsync
|
|||||||
sed
|
sed
|
||||||
squashfs-tools
|
squashfs-tools
|
||||||
syslinux
|
syslinux
|
||||||
syslinux-efi
|
|
||||||
xorriso
|
xorriso
|
||||||
xz-utils
|
xz-utils
|
||||||
zlib1g
|
zlib1g
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
NAME='elementaryOS'
|
NAME='elementaryOS'
|
||||||
SUPPORTED='untested'
|
SUPPORTED='no'
|
||||||
CHECK_METHOD='egrep "^DISTRIB_ID=\"elementary OS\"$" /etc/lsb-release'
|
CHECK_METHOD='egrep "^DISTRIB_ID=\"elementary OS\"$" /etc/lsb-release'
|
||||||
PKG_MGR='apt-get -y install ${pkgname}'
|
PKG_MGR='apt-get -y install ${pkgname}'
|
||||||
PRE_RUN='apt-get -y update'
|
PRE_RUN='apt-get -y update'
|
||||||
|
|||||||
@@ -28,11 +28,11 @@ netctl
|
|||||||
networkmanager
|
networkmanager
|
||||||
openssh
|
openssh
|
||||||
openvpn
|
openvpn
|
||||||
|
prebootloader
|
||||||
pv
|
pv
|
||||||
rsync
|
rsync
|
||||||
sed
|
sed
|
||||||
shorewall
|
shorewall
|
||||||
squashfs3-tools
|
|
||||||
squashfs-tools
|
squashfs-tools
|
||||||
sudo
|
sudo
|
||||||
sysfsutils
|
sysfsutils
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
NAME='openSUSE'
|
NAME='openSUSE'
|
||||||
SUPPORTED='untested'
|
SUPPORTED='yes'
|
||||||
# Default doesn't have the quotes around the value, but I have a feeling that's a bug that will get "fixed" soon.
|
# Default doesn't have the quotes around the value, but I have a feeling that's a bug that will get "fixed" soon.
|
||||||
CHECK_METHOD='egrep "^NAME=\"?openSUSE\"?$" /etc/os-release'
|
CHECK_METHOD='egrep "^NAME=\"?openSUSE\"?$" /etc/os-release'
|
||||||
PKG_MGR='zypper install --no-confirm -l ${pkgname}'
|
PKG_MGR='zypper install --no-confirm -l ${pkgname}'
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
binutils
|
binutils
|
||||||
|
binutils-devel
|
||||||
|
binutils-devel-32bit
|
||||||
curl
|
curl
|
||||||
|
dosfstools
|
||||||
gcc
|
gcc
|
||||||
gcc-32bit
|
gcc-32bit
|
||||||
git
|
git
|
||||||
@@ -15,3 +18,5 @@ sed
|
|||||||
squashfs
|
squashfs
|
||||||
syslinux
|
syslinux
|
||||||
xz
|
xz
|
||||||
|
xz-devel
|
||||||
|
xz-devel-32bit
|
||||||
|
|||||||
@@ -50,9 +50,10 @@ echo "==================================="
|
|||||||
date
|
date
|
||||||
if [ -n "${DEFROUTEIF}" ];
|
if [ -n "${DEFROUTEIF}" ];
|
||||||
then
|
then
|
||||||
|
IPADDR=$(ip a s dev ${DEFROUTEIF} | egrep '^[[:space:]]*inet\ ' | awk '{print $2}' | cut -f1 -d"/")
|
||||||
|
HWADDR=$(ip l show dev ${DEFROUTEIF} | egrep '^[[:space:]]*link' | awk '{print $2}')
|
||||||
echo
|
echo
|
||||||
echo -n "${DEFROUTEIF} is: "
|
echo -n "${DEFROUTEIF} (${HWADDR}) is: ${IPADDR}"
|
||||||
ifconfig "${DEFROUTEIF}" | egrep 'inet|ether' | grep -v "inet6" | awk '{print $2}'
|
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
echo -n "tun0 is:"
|
echo -n "tun0 is:"
|
||||||
|
|||||||
@@ -1,11 +1,6 @@
|
|||||||
#/bin/sh -
|
#/bin/sh -
|
||||||
|
|
||||||
#chmod 4755 /opt/google/chrome-beta/chrome-sandbox
|
#chmod 4755 /opt/google/chrome-beta/chrome-sandbox
|
||||||
mkdir -p /var/db/sudo/lectured
|
|
||||||
touch /var/db/sudo/lectured/bdisk
|
|
||||||
chmod 700 /var/db/sudo/lectured
|
|
||||||
chgrp bdisk /var/db/sudo/lectured/bdisk
|
|
||||||
chmod 600 /var/db/sudo/lectured/bdisk
|
|
||||||
chmod 4755 /usr/bin/sudo
|
chmod 4755 /usr/bin/sudo
|
||||||
|
|
||||||
function fuck_you_gimme_net() {
|
function fuck_you_gimme_net() {
|
||||||
|
|||||||
2
src/ipxe
2
src/ipxe
Submodule src/ipxe updated: 24112d91a0...c522c11c7b
7
src/ipxe_local/00-general.sed
Normal file
7
src/ipxe_local/00-general.sed
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
s/^#undef([[:space:]]*NET_PROTO_IPV6)/#define\1/g
|
||||||
|
s/^#undef([[:space:]]*DOWNLOAD_PROTO_HTTPS)/#define\1/g
|
||||||
|
s/^#undef([[:space:]]*DOWNLOAD_PROTO_FTP)/#define\1/g
|
||||||
|
## Currently broken for EFI building
|
||||||
|
#s@^//(#define[[:space:]]*CONSOLE_CMD)@\1@g
|
||||||
|
#s@^//(#define[[:space:]]*IMAGE_PNG@\1@g
|
||||||
|
s@^//(#define[[:space:]]*IMAGE_TRUST_CMD@\1@g
|
||||||
2
src/ipxe_local/01-console.sed
Normal file
2
src/ipxe_local/01-console.sed
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
## Currently broken on EFI systems
|
||||||
|
#s@^//(#define[[:space:]]*CONSOLE_VESAFB)@\1@g
|
||||||
@@ -1,14 +1,13 @@
|
|||||||
From ddf6f6ac945654b00121ab899fb0bbb63293e51e Mon Sep 17 00:00:00 2001
|
From d2092664b3cf866b2ab338fe056149d3266d0acc Mon Sep 17 00:00:00 2001
|
||||||
From: Christian Hesse <mail@eworm.de>
|
From: Christian Hesse <mail@eworm.de>
|
||||||
Date: Tue, 7 Apr 2015 16:04:31 +0200
|
Date: Sun, 19 Apr 2015 13:16:09 +0200
|
||||||
Subject: [PATCH 1/2] [build] allow to build ISO image with EFI support
|
Subject: [PATCH 1/1] allow to build ISO image with EFI support (ipxe.eiso)
|
||||||
(ipxe.eiso)
|
|
||||||
|
|
||||||
Signed-off-by: Christian Hesse <mail@eworm.de>
|
Signed-off-by: Christian Hesse <mail@eworm.de>
|
||||||
---
|
---
|
||||||
src/arch/i386/Makefile.pcbios | 6 ++++++
|
src/arch/i386/Makefile.pcbios | 6 +++++
|
||||||
src/util/geniso | 39 ++++++++++++++++++++++++++++++---------
|
src/util/geniso | 52 +++++++++++++++++++++++++++++++++----------
|
||||||
2 files changed, 36 insertions(+), 9 deletions(-)
|
2 files changed, 46 insertions(+), 12 deletions(-)
|
||||||
|
|
||||||
diff --git a/src/arch/i386/Makefile.pcbios b/src/arch/i386/Makefile.pcbios
|
diff --git a/src/arch/i386/Makefile.pcbios b/src/arch/i386/Makefile.pcbios
|
||||||
index ff82373..c7a58eb 100644
|
index ff82373..c7a58eb 100644
|
||||||
@@ -28,14 +27,14 @@ index ff82373..c7a58eb 100644
|
|||||||
NON_AUTO_MEDIA += liso
|
NON_AUTO_MEDIA += liso
|
||||||
%liso: %lkrn util/geniso
|
%liso: %lkrn util/geniso
|
||||||
diff --git a/src/util/geniso b/src/util/geniso
|
diff --git a/src/util/geniso b/src/util/geniso
|
||||||
index 521c929..998370d 100755
|
index 521c929..9e8588c 100755
|
||||||
--- a/src/util/geniso
|
--- a/src/util/geniso
|
||||||
+++ b/src/util/geniso
|
+++ b/src/util/geniso
|
||||||
@@ -6,16 +6,21 @@ function help() {
|
@@ -6,16 +6,21 @@ function help() {
|
||||||
echo "usage: ${0} [OPTIONS] foo.lkrn [bar.lkrn,...]"
|
echo "usage: ${0} [OPTIONS] foo.lkrn [bar.lkrn,...]"
|
||||||
echo
|
echo
|
||||||
echo "where OPTIONS are:"
|
echo "where OPTIONS are:"
|
||||||
+ echo " -e build image with EFI support"
|
+ echo " -e build image with EFI support"
|
||||||
echo " -h show this help"
|
echo " -h show this help"
|
||||||
echo " -l build legacy image with floppy emulation"
|
echo " -l build legacy image with floppy emulation"
|
||||||
echo " -o FILE save iso image to file"
|
echo " -o FILE save iso image to file"
|
||||||
@@ -54,49 +53,47 @@ index 521c929..998370d 100755
|
|||||||
h)
|
h)
|
||||||
help
|
help
|
||||||
exit 0
|
exit 0
|
||||||
@@ -37,23 +42,24 @@ if [ -z "${OUT}" ]; then
|
@@ -37,17 +42,25 @@ if [ -z "${OUT}" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
-# There should either be mkisofs or the compatible genisoimage program
|
-# There should either be mkisofs or the compatible genisoimage program
|
||||||
-for command in genisoimage mkisofs; do
|
-for command in genisoimage mkisofs; do
|
||||||
+# We require xorriso (from libisoburn) for EFI support
|
- if ${command} --version >/dev/null 2>/dev/null; then
|
||||||
+# genisoimage and mkisofs are missing some features
|
|
||||||
+for command in xorriso; do
|
|
||||||
if ${command} --version >/dev/null 2>/dev/null; then
|
|
||||||
- mkisofs=(${command})
|
- mkisofs=(${command})
|
||||||
+ xorriso=(${command})
|
- break
|
||||||
break
|
- fi
|
||||||
fi
|
-done
|
||||||
done
|
-
|
||||||
|
|
||||||
-if [ -z "${mkisofs}" ]; then
|
-if [ -z "${mkisofs}" ]; then
|
||||||
- echo "${0}: mkisofs or genisoimage not found, please install or set PATH" >&2
|
- echo "${0}: mkisofs or genisoimage not found, please install or set PATH" >&2
|
||||||
+if [ -z "${xorriso}" ]; then
|
+# We need xorriso (from libisoburn) for EFI support, so try that first.
|
||||||
+ echo "${0}: xorriso not found, please install or set PATH" >&2
|
+if xorriso --version >/dev/null 2>/dev/null; then
|
||||||
|
+ mkisofs=(xorriso -as mkisofs)
|
||||||
|
+elif [ ${EFI} -eq 1 ]; then
|
||||||
|
+ echo "${0}: xorriso not found, but required for EFI support. Please install." >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
+else
|
||||||
|
+ # fall back to mkisofs or the compatible genisoimage program
|
||||||
|
+ for command in genisoimage mkisofs; do
|
||||||
|
+ if ${command} --version >/dev/null 2>/dev/null; then
|
||||||
|
+ mkisofs=(${command})
|
||||||
|
+ break
|
||||||
|
+ fi
|
||||||
|
+ done
|
||||||
|
+
|
||||||
|
+ if [ -z "${mkisofs}" ]; then
|
||||||
|
+ echo "${0}: mkisofs or genisoimage not found, please install or set PATH" >&2
|
||||||
|
+ exit 1
|
||||||
|
+ fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dir=$(mktemp -d bin/iso.dir.XXXXXX)
|
dir=$(mktemp -d bin/iso.dir.XXXXXX)
|
||||||
cfg=${dir}/isolinux.cfg
|
@@ -122,6 +135,21 @@ case "${LEGACY}" in
|
||||||
|
|
||||||
-mkisofs+=(-quiet -l -volid "iPXE" -preparer "iPXE build system"
|
|
||||||
+xorriso+=(-as mkisofs -quiet -l -volid "iPXE" -preparer "iPXE build system"
|
|
||||||
-appid "iPXE ${VERSION} - Open Source Network Boot Firmware"
|
|
||||||
-publisher "http://ipxe.org/" -c boot.cat)
|
|
||||||
|
|
||||||
@@ -116,12 +122,27 @@ case "${LEGACY}" in
|
|
||||||
fi
|
|
||||||
|
|
||||||
# generate the iso image
|
|
||||||
- "${mkisofs[@]}" -b boot.img -output ${OUT} ${dir}
|
|
||||||
+ "${xorriso[@]}" -b boot.img -output ${OUT} ${dir}
|
|
||||||
;;
|
|
||||||
0)
|
|
||||||
# copy isolinux bootloader
|
# copy isolinux bootloader
|
||||||
cp ${ISOLINUX_BIN} ${dir}
|
cp ${ISOLINUX_BIN} ${dir}
|
||||||
|
|
||||||
+ xorriso+=(-b isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table)
|
+ mkisofs+=(-b isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table)
|
||||||
+
|
+
|
||||||
+ if [ "${EFI}" -eq 1 ]; then
|
+ if [ "${EFI}" -eq 1 ]; then
|
||||||
+ # generate EFI image
|
+ # generate EFI image
|
||||||
@@ -108,18 +105,18 @@ index 521c929..998370d 100755
|
|||||||
+ mcopy -m -i ${img} bin-x86_64-efi/ipxe.efi "::EFI/BOOT/BOOTX64.EFI"
|
+ mcopy -m -i ${img} bin-x86_64-efi/ipxe.efi "::EFI/BOOT/BOOTX64.EFI"
|
||||||
+ mcopy -m -i ${img} bin-i386-efi/ipxe.efi "::EFI/BOOT/BOOTIA32.EFI"
|
+ mcopy -m -i ${img} bin-i386-efi/ipxe.efi "::EFI/BOOT/BOOTIA32.EFI"
|
||||||
+
|
+
|
||||||
+ xorriso+=(-eltorito-alt-boot -e efiboot.img -isohybrid-gpt-basdat -no-emul-boot)
|
+ mkisofs+=(-eltorito-alt-boot -e efiboot.img -isohybrid-gpt-basdat -no-emul-boot)
|
||||||
+ fi
|
+ fi
|
||||||
+
|
+
|
||||||
# syslinux 6.x needs a file called ldlinux.c32
|
# syslinux 6.x needs a file called ldlinux.c32
|
||||||
LDLINUX_C32=$(dirname ${ISOLINUX_BIN})/ldlinux.c32
|
LDLINUX_C32=$(dirname ${ISOLINUX_BIN})/ldlinux.c32
|
||||||
if [ -s ${LDLINUX_C32} ]; then
|
if [ -s ${LDLINUX_C32} ]; then
|
||||||
@@ -129,7 +150,7 @@ case "${LEGACY}" in
|
@@ -129,7 +157,7 @@ case "${LEGACY}" in
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# generate the iso image
|
# generate the iso image
|
||||||
- "${mkisofs[@]}" -b isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -output ${OUT} ${dir}
|
- "${mkisofs[@]}" -b isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -output ${OUT} ${dir}
|
||||||
+ "${xorriso[@]}" -output ${OUT} ${dir}
|
+ "${mkisofs[@]}" -output ${OUT} ${dir}
|
||||||
|
|
||||||
# isohybrid will be used if available
|
# isohybrid will be used if available
|
||||||
if isohybrid --version >/dev/null 2>/dev/null; then
|
if isohybrid --version >/dev/null 2>/dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user