diff --git a/archlinux_bootstrap.sh b/archlinux_bootstrap.sh index c1147ec..6c9f049 100644 --- a/archlinux_bootstrap.sh +++ b/archlinux_bootstrap.sh @@ -118,7 +118,8 @@ set +x mkdir -pv "/"{tmp,proc,sys,dev,run/media,mnt,media,home} 2>/dev/null rm -fv ""/etc/{host.conf,hosts,nsswitch.conf} 2>/dev/null touch ""/etc/{host.conf,hosts,nsswitch.conf} 2>/dev/null - hostname 2>/dev/null; cat "/etc/os-release" 2>/dev/null' && docker export "$(docker ps -aqf 'name=archlinux')" --output "rootfs.tar" + hostname 2>/dev/null; cat "/etc/os-release" 2>/dev/null' + docker export "$(docker ps -aqf 'name=archlinux')" --output "rootfs.tar" if [[ -f "./rootfs.tar" ]] && [[ $(stat -c%s "./rootfs.tar") -gt 10000 ]]; then mkdir -pv "./rootfs" && export ROOTFS_DIR="$(realpath "./rootfs")" rsync -achLv --mkpath "./rootfs.tar" "/tmp/ROOTFS/archlinux.rootfs.tar" diff --git a/artixlinux_bootstrap.sh b/artixlinux_bootstrap.sh index be203d0..f666f59 100644 --- a/artixlinux_bootstrap.sh +++ b/artixlinux_bootstrap.sh @@ -118,7 +118,8 @@ set +x mkdir -pv "/"{tmp,proc,sys,dev,run/media,mnt,media,home} 2>/dev/null rm -fv ""/etc/{host.conf,hosts,nsswitch.conf} 2>/dev/null touch ""/etc/{host.conf,hosts,nsswitch.conf} 2>/dev/null - hostname 2>/dev/null; cat "/etc/os-release" 2>/dev/null' && docker export "$(docker ps -aqf 'name=artix')" --output "rootfs.tar" + hostname 2>/dev/null; cat "/etc/os-release" 2>/dev/null' + docker export "$(docker ps -aqf 'name=artix')" --output "rootfs.tar" if [[ -f "./rootfs.tar" ]] && [[ $(stat -c%s "./rootfs.tar") -gt 10000 ]]; then mkdir -pv "./rootfs" && export ROOTFS_DIR="$(realpath "./rootfs")" rsync -achLv --mkpath "./rootfs.tar" "/tmp/ROOTFS/artixlinux.rootfs.tar" diff --git a/cachyos_bootstrap.sh b/cachyos_bootstrap.sh index f372fb5..34c5245 100644 --- a/cachyos_bootstrap.sh +++ b/cachyos_bootstrap.sh @@ -118,7 +118,8 @@ set +x mkdir -pv "/"{tmp,proc,sys,dev,run/media,mnt,media,home} 2>/dev/null rm -fv ""/etc/{host.conf,hosts,nsswitch.conf} 2>/dev/null touch ""/etc/{host.conf,hosts,nsswitch.conf} 2>/dev/null - hostname 2>/dev/null; cat "/etc/os-release" 2>/dev/null' && docker export "$(docker ps -aqf 'name=cachyos')" --output "rootfs.tar" + hostname 2>/dev/null; cat "/etc/os-release" 2>/dev/null' + docker export "$(docker ps -aqf 'name=cachyos')" --output "rootfs.tar" if [[ -f "./rootfs.tar" ]] && [[ $(stat -c%s "./rootfs.tar") -gt 10000 ]]; then mkdir -pv "./rootfs" && export ROOTFS_DIR="$(realpath "./rootfs")" rsync -achLv --mkpath "./rootfs.tar" "/tmp/ROOTFS/cachyos.rootfs.tar"