Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
Azathothas committed Oct 27, 2024
1 parent 891657b commit 15714e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion archlinux_bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion artixlinux_bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion cachyos_bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 15714e3

Please sign in to comment.