From: xf0r3m Date: Sat, 22 Jul 2023 13:44:14 +0000 (+0200) Subject: Poprawienie ścieżki w poleceniu 'cd' przed tworzeniem obrazu płyty w sekcji '--update... X-Git-Url: https://gitweb.morketsmerke.org/?a=commitdiff_plain;h=4f644f775b47feb98ff9e3f07992d07ff09f49c0;p=immudex-lhe.git Poprawienie ścieżki w poleceniu 'cd' przed tworzeniem obrazu płyty w sekcji '--update', poprawienie architektury w poleceniu debootstrap - skrypt budowy 'immudex_build' --- diff --git a/immudex_build b/immudex_build index 82dc80d..d3183cc 100755 --- a/immudex_build +++ b/immudex_build @@ -63,7 +63,7 @@ if [ "$1" ] && [ "$1" = "--update" ]; then #Create iso image: echo -n "Creating iso image..."; - cd ~/immudex-testing/${arch}; + cd ~/immudex-lhe/${arch}; xorriso as mkisofs -iso-level 3 -o "immudex-lhe32.iso" -full-iso9660-filenames -volid "immudex-lhe" -isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin -eltorito-boot isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table --eltorito-catalog isolinux/isolinux.cat ~/immudex-lhe/${arch}/staging >> ~/immudex_build.log 2>&1; if [ $? -eq 0 ]; then echo -e "[ ${GREEN}OK${ENDCOLOR} ]"; fi exit 0; @@ -84,13 +84,13 @@ fi #Creating root directory sturcture for immudex build: if [ ! -d ~/immudex-lhe/${arch} ]; then echo -n "Creating root directory structure for immudex build..."; - mkdir -pv ~/immudex-testing/${arch} >> immudex_build.log 2>&1; + mkdir -pv ~/immudex-lhe/${arch} >> immudex_build.log 2>&1; if [ $? -eq 0 ]; then echo -e "[ ${GREEN}OK${ENDCOLOR} ]"; fi fi #Fetching testing vanilla Debian base system files: echo -n "Fetching oldoldstable vanilla Debian base system files..."; -sudo /sbin/debootstrap --arch=$arch oldoldstable ~/immudex-lhe/${arch}/chroot http://deb.debian.org/debian >> ~/immudex_build.log 2>&1; +sudo /sbin/debootstrap --arch=i386 oldoldstable ~/immudex-lhe/${arch}/chroot http://deb.debian.org/debian >> ~/immudex_build.log 2>&1; if [ $? -eq 0 ]; then echo -e "[ ${GREEN}OK${ENDCOLOR} ]"; fi #Getting project files: