Turn to silent some commands
This commit is contained in:
parent
c985da0564
commit
987315a355
|
@ -11,7 +11,7 @@ else
|
|||
fi
|
||||
|
||||
if ! command -v unzip > /dev/null; then
|
||||
apt install unzip
|
||||
apt -y install unzip
|
||||
fi
|
||||
|
||||
CZ_INSTALLER_DIR="${TFTP_DIRECTORY}/installer/clonezilla"
|
||||
|
@ -29,14 +29,16 @@ for ARCH in amd64 i686; do # For available classic architecture
|
|||
|
||||
# Create and go into directory
|
||||
mkdir -p ${CZ_INSTALLER_DIR}/${ARCH}
|
||||
pushd ${CZ_INSTALLER_DIR}/${ARCH}
|
||||
pushd ${CZ_INSTALLER_DIR}/${ARCH} > /dev/null
|
||||
|
||||
# Download and extract only PXE files
|
||||
wget "${CZ_URL}" -O "${CZ_TEMP_FILE}"
|
||||
unzip -j "${CZ_TEMP_FILE}" live/vmlinuz live/initrd.img live/filesystem.squashfs -d .
|
||||
#wget "${CZ_URL}" -O "${CZ_TEMP_FILE}"
|
||||
wget --quiet "${CZ_URL}" -O "${CZ_TEMP_FILE}"
|
||||
#unzip -j "${CZ_TEMP_FILE}" live/vmlinuz live/initrd.img live/filesystem.squashfs -d .
|
||||
unzip -q -j "${CZ_TEMP_FILE}" live/vmlinuz live/initrd.img live/filesystem.squashfs -d .
|
||||
rm -f "${CZ_TEMP_FILE}"
|
||||
|
||||
popd
|
||||
popd > /dev/null
|
||||
|
||||
# Config file
|
||||
/bin/cat >> "${CZ_CONFIG_PXE}" << EOF
|
||||
|
|
|
@ -27,12 +27,14 @@ for DISTRO in stretch buster jessie wheezy sid; do # For ALL Debian's version
|
|||
|
||||
# Create and go into directory
|
||||
mkdir -p ${DEBIAN_INSTALLER_DIR}/${DISTRO}/${ARCH}
|
||||
pushd ${DEBIAN_INSTALLER_DIR}/${DISTRO}/${ARCH}
|
||||
pushd ${DEBIAN_INSTALLER_DIR}/${DISTRO}/${ARCH} > /dev/null
|
||||
|
||||
# Download files
|
||||
wget http://ftp.fr.debian.org/debian/dists/${DISTRO}/main/installer-${ARCH}/current/images/netboot/debian-installer/${ARCH}/linux -O linux
|
||||
wget http://ftp.fr.debian.org/debian/dists/${DISTRO}/main/installer-${ARCH}/current/images/netboot/debian-installer/${ARCH}/initrd.gz -O initrd.gz
|
||||
popd
|
||||
#wget http://ftp.fr.debian.org/debian/dists/${DISTRO}/main/installer-${ARCH}/current/images/netboot/debian-installer/${ARCH}/linux -O linux
|
||||
#wget http://ftp.fr.debian.org/debian/dists/${DISTRO}/main/installer-${ARCH}/current/images/netboot/debian-installer/${ARCH}/initrd.gz -O initrd.gz
|
||||
wget --quiet http://ftp.fr.debian.org/debian/dists/${DISTRO}/main/installer-${ARCH}/current/images/netboot/debian-installer/${ARCH}/linux -O linux
|
||||
wget --quiet http://ftp.fr.debian.org/debian/dists/${DISTRO}/main/installer-${ARCH}/current/images/netboot/debian-installer/${ARCH}/initrd.gz -O initrd.gz
|
||||
popd > /dev/null
|
||||
|
||||
# Config file
|
||||
/bin/cat >> "${DEBIAN_CONFIG_PXE}" << EOF
|
||||
|
|
|
@ -11,7 +11,7 @@ fi
|
|||
|
||||
|
||||
if ! command -v unzip > /dev/null; then
|
||||
apt install unzip
|
||||
apt -y install unzip
|
||||
fi
|
||||
|
||||
### Memtest {{{
|
||||
|
@ -22,17 +22,18 @@ MEMTEST_INSTALLER_DIR="${TFTP_DIRECTORY}/installer/memtest/"
|
|||
# (re)Create the installer directory
|
||||
rm -rf ${MEMTEST_INSTALLER_DIR}
|
||||
mkdir -p ${MEMTEST_INSTALLER_DIR}
|
||||
pushd ${MEMTEST_INSTALLER_DIR}
|
||||
pushd ${MEMTEST_INSTALLER_DIR} > /dev/null
|
||||
|
||||
# Config file
|
||||
CONFIG_PXE="${TFTP_DIRECTORY}/installer/menu.cfg.diag.example"
|
||||
rm -f ${CONFIG_PXE} && touch ${CONFIG_PXE}
|
||||
|
||||
# Download the last version and set simpler name (without the **.bin** extension !)
|
||||
wget ${MEMTEST_URL} -O - | gzip -d > memtest86+-${MEMTEST_VERSION}.bin
|
||||
#wget ${MEMTEST_URL} -O - | gzip -d > memtest86+-${MEMTEST_VERSION}.bin
|
||||
wget --quiet ${MEMTEST_URL} -O - | gzip -d > memtest86+-${MEMTEST_VERSION}.bin
|
||||
ln -s memtest86+-${MEMTEST_VERSION}.bin memtest86+
|
||||
|
||||
popd
|
||||
popd > /dev/null
|
||||
|
||||
# Config file
|
||||
/bin/cat >> "${CONFIG_PXE}" << EOF
|
||||
|
@ -57,14 +58,16 @@ for ARCH in amd64 i686; do # For available classic architecture
|
|||
|
||||
# Create and go into directory
|
||||
mkdir -p ${GPARTED_INSTALLER_DIR}/${ARCH}
|
||||
pushd ${GPARTED_INSTALLER_DIR}/${ARCH}
|
||||
pushd ${GPARTED_INSTALLER_DIR}/${ARCH} > /dev/null
|
||||
|
||||
# Download and extract only PXE files
|
||||
wget "${GPARTED_URL}" -O "${GPARTED_TEMP_FILE}"
|
||||
unzip -j "${GPARTED_TEMP_FILE}" live/filesystem.squashfs live/initrd.img live/vmlinuz -d .
|
||||
#wget "${GPARTED_URL}" -O "${GPARTED_TEMP_FILE}"
|
||||
wget --quiet "${GPARTED_URL}" -O "${GPARTED_TEMP_FILE}"
|
||||
#unzip -j "${GPARTED_TEMP_FILE}" live/filesystem.squashfs live/initrd.img live/vmlinuz -d .
|
||||
unzip -q -j "${GPARTED_TEMP_FILE}" live/filesystem.squashfs live/initrd.img live/vmlinuz -d .
|
||||
rm -f "${GPARTED_TEMP_FILE}"
|
||||
|
||||
popd
|
||||
popd > /dev/null
|
||||
|
||||
/bin/cat >> "${CONFIG_PXE}" << EOF
|
||||
label gpartedlive${ARCH}
|
||||
|
|
|
@ -17,10 +17,12 @@ LTS="xenial"
|
|||
for DISTRO in artful ${LTS}; do
|
||||
for ARCH in amd64 i386; do
|
||||
mkdir -p ${TFTP_DIRECTORY}/installer/ubuntu/${DISTRO}/${ARCH}
|
||||
pushd ${TFTP_DIRECTORY}/installer/ubuntu/${DISTRO}/${ARCH}
|
||||
wget http://fr.archive.ubuntu.com/ubuntu/dists/${DISTRO}/main/installer-${ARCH}/current/images/netboot/ubuntu-installer/${ARCH}/linux -O linux
|
||||
wget http://fr.archive.ubuntu.com/ubuntu/dists/${DISTRO}/main/installer-${ARCH}/current/images/netboot/ubuntu-installer/${ARCH}/initrd.gz -O initrd.gz
|
||||
popd
|
||||
pushd ${TFTP_DIRECTORY}/installer/ubuntu/${DISTRO}/${ARCH} > /dev/null
|
||||
#wget http://fr.archive.ubuntu.com/ubuntu/dists/${DISTRO}/main/installer-${ARCH}/current/images/netboot/ubuntu-installer/${ARCH}/linux -O linux
|
||||
#wget http://fr.archive.ubuntu.com/ubuntu/dists/${DISTRO}/main/installer-${ARCH}/current/images/netboot/ubuntu-installer/${ARCH}/initrd.gz -O initrd.gz
|
||||
wget --quiet http://fr.archive.ubuntu.com/ubuntu/dists/${DISTRO}/main/installer-${ARCH}/current/images/netboot/ubuntu-installer/${ARCH}/linux -O linux
|
||||
wget --quiet http://fr.archive.ubuntu.com/ubuntu/dists/${DISTRO}/main/installer-${ARCH}/current/images/netboot/ubuntu-installer/${ARCH}/initrd.gz -O initrd.gz
|
||||
popd > /dev/null
|
||||
done
|
||||
done
|
||||
|
||||
|
|
|
@ -17,47 +17,53 @@ fi
|
|||
for DISTRO in stretch buster jessie wheezy sid; do # For ALL Debian's version
|
||||
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd "${TEMP_DIR}"
|
||||
pushd "${TEMP_DIR}" > /dev/null
|
||||
|
||||
# Download and uncompress original initrd
|
||||
wget http://ftp.fr.debian.org/debian/dists/${DISTRO}/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
|
||||
#wget http://ftp.fr.debian.org/debian/dists/${DISTRO}/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
|
||||
wget --quiet http://ftp.fr.debian.org/debian/dists/${DISTRO}/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
|
||||
mkdir "${TEMP_DIR}"/mkinitrd
|
||||
pushd "${TEMP_DIR}"/mkinitrd/
|
||||
pushd "${TEMP_DIR}"/mkinitrd/ > /dev/null
|
||||
zcat ../initrd.gz | cpio -iv
|
||||
|
||||
popd
|
||||
popd > /dev/null
|
||||
|
||||
# Download bnx2's firmware and uncompress it
|
||||
wget http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-bnx2_0.43_all.deb
|
||||
#wget http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-bnx2_0.43_all.deb
|
||||
wget --quiet http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-bnx2_0.43_all.deb
|
||||
dpkg-deb -x firmware-bnx2_0.43_all.deb "${TEMP_DIR}"/mkinitrd
|
||||
|
||||
# Download tigon(all non-free)'s firmware and uncompress it
|
||||
wget http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-linux-nonfree_0.43_all.deb
|
||||
#wget http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-linux-nonfree_0.43_all.deb
|
||||
wget --quiet http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-linux-nonfree_0.43_all.deb
|
||||
dpkg-deb -x firmware-linux-nonfree_0.43_all.deb "${TEMP_DIR}"/mkinitrd
|
||||
|
||||
# Download myricom for IBM
|
||||
wget http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-myricom_0.43_all.deb
|
||||
#wget http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-myricom_0.43_all.deb
|
||||
wget --quiet http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-myricom_0.43_all.deb
|
||||
dpkg-deb -x firmware-myricom_0.43_all.deb "${TEMP_DIR}"/mkinitrd
|
||||
|
||||
# Download qlogic
|
||||
wget http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-qlogic_0.43_all.deb
|
||||
#wget http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-qlogic_0.43_all.deb
|
||||
wget --quiet http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-qlogic_0.43_all.deb
|
||||
dpkg-deb -x firmware-qlogic_0.43_all.deb "${TEMP_DIR}"/mkinitrd
|
||||
|
||||
# Download iwlwifi
|
||||
wget http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-iwlwifi_20170823-1_all.deb -O firmware-iwlwifi_all.deb
|
||||
#wget http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-iwlwifi_20170823-1_all.deb -O firmware-iwlwifi_all.deb
|
||||
wget --quiet http://ftp.fr.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-iwlwifi_20170823-1_all.deb -O firmware-iwlwifi_all.deb
|
||||
dpkg-deb -x firmware-iwlwifi_all.deb "${TEMP_DIR}"/mkinitrd
|
||||
|
||||
# Make a new initrd
|
||||
mv initrd.gz initrd_orig.gz
|
||||
pushd "${TEMP_DIR}"/mkinitrd/
|
||||
pushd "${TEMP_DIR}"/mkinitrd/ > /dev/null
|
||||
find . -print0 | cpio -0 -H newc -ov | gzip -c > ../initrd.gz
|
||||
popd
|
||||
popd > /dev/null
|
||||
|
||||
# Move it to PXE Debian installer
|
||||
mkdir -p ${TFTP_DIRECTORY}/installer/debian/${DISTRO}/amd64/
|
||||
mv initrd.gz ${TFTP_DIRECTORY}/installer/debian/${DISTRO}/amd64/initrd_firm.gz
|
||||
|
||||
popd
|
||||
popd > /dev/null
|
||||
|
||||
# Clean temp file
|
||||
rm -rf "${TEMP_DIR}"
|
||||
|
|
Loading…
Reference in New Issue