mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
backupiso: fix boot on EFI
the grub on EFI serch the config on volume "IPFire 2.21 arch" so the custom "ipfire backup ..." volume name is not working anymore. This is now fixed and a backup-version.media tag will added. Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
#!/bin/sh
|
||||
arch=$(uname -m)
|
||||
IPFVER=2.21
|
||||
COREVER=$(cat /opt/pakfire/db/core/mine)
|
||||
# FIXME: edit this lines before release
|
||||
URL="https://downloads.ipfire.org/releases/ipfire-2.x/$IPFVER-core$COREVER/"
|
||||
ISO="ipfire-$IPFVER.$arch-full-core$COREVER.iso"
|
||||
|
||||
makeiso() {
|
||||
local dir="${1}"
|
||||
@@ -13,7 +18,7 @@ makeiso() {
|
||||
fi
|
||||
|
||||
# Compose ISO
|
||||
mkisofs -J -r -V "ipfire backup ${TS}" \
|
||||
mkisofs -J -r -V "IPFire ${IPFVER} ${arch}" \
|
||||
-b boot/isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table \
|
||||
-c boot/isolinux/boot.catalog \
|
||||
${args} ${dir} > ${output}
|
||||
@@ -43,11 +48,6 @@ case $arch in
|
||||
;;
|
||||
esac
|
||||
|
||||
COREVER=$(cat /opt/pakfire/db/core/mine)
|
||||
# FIXME: edit this lines before release
|
||||
URL="https://downloads.ipfire.org/releases/ipfire-2.x/2.21-core$COREVER/"
|
||||
ISO="ipfire-2.21.$arch-full-core$COREVER.iso"
|
||||
|
||||
if [ -z $1 ]; then
|
||||
echo usage: $0 backup-file
|
||||
exit
|
||||
@@ -99,6 +99,9 @@ rm -r backupiso.tmp.${TS}
|
||||
# Copy backup file to disk
|
||||
cp "/var/ipfire/backup/${TS}.ipf" "backupiso.${TS}/backup.ipf"
|
||||
|
||||
# Add a version tag
|
||||
touch "backupiso.${TS}/backup-${TS}.media"
|
||||
|
||||
echo "Running mkisofs"
|
||||
makeiso backupiso.${TS} $(basename ${ISO} .iso)-${TS}.iso
|
||||
|
||||
|
||||
Reference in New Issue
Block a user