summaryrefslogtreecommitdiffstats
path: root/old/infest.d/cac-CentOS-7-64bit/finalize.sh
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-07-16 23:22:30 +0200
committertv <tv@shackspace.de>2015-07-16 23:22:30 +0200
commit57c520b722f25f384301118046bf9cf182d4edd7 (patch)
tree57983c04bb49fe0375300861111a61cede545794 /old/infest.d/cac-CentOS-7-64bit/finalize.sh
parent447c63edbd403abf026800d10594ed037b4304e9 (diff)
Goodbye old world, and thanks for all the fish!
Diffstat (limited to 'old/infest.d/cac-CentOS-7-64bit/finalize.sh')
-rw-r--r--old/infest.d/cac-CentOS-7-64bit/finalize.sh66
1 files changed, 0 insertions, 66 deletions
diff --git a/old/infest.d/cac-CentOS-7-64bit/finalize.sh b/old/infest.d/cac-CentOS-7-64bit/finalize.sh
deleted file mode 100644
index b70276b33..000000000
--- a/old/infest.d/cac-CentOS-7-64bit/finalize.sh
+++ /dev/null
@@ -1,66 +0,0 @@
-#! /bin/sh
-set -eu
-{
- umount /mnt2
- umount /mnt/nix
- umount /mnt/boot
- umount /mnt
- umount /boot
-
- PATH=$(for i in /nix/store/*coreutils*/bin; do :; done; echo $i)
- export PATH
-
- mkdir /oldshit
-
- mv /bin /oldshit/
- mv /newshit/bin /
-
- # TODO ensure /boot is empty
- rmdir /newshit/boot
-
- # skip /dev
- rmdir /newshit/dev
-
- mv /etc /oldshit/
- mv /newshit/etc /
-
- # TODO ensure /home is empty
- rmdir /newshit/home
-
- # skip /nix (it's already there)
- rmdir /newshit/nix
-
- # skip /proc
- rmdir /newshit/proc
-
- # skip /run
- rmdir /newshit/run
-
- # skip /sys
- rmdir /newshit/sys
-
- # skip /tmp
- # TODO rmdir /newshit/tmp
-
- mv /usr /oldshit/
- mv /newshit/usr /
-
- mv /var /oldshit/
- mv /newshit/var /
-
- mv /root /oldshit/
- mv /newshit/root /
-
- mv /lib /oldshit/
- mv /lib64 /oldshit/
- mv /sbin /oldshit/
- mv /mnt2 /oldshit/
- mv /srv /oldshit/
- mv /opt /oldshit/
-
-
- mv /newshit /root/ # TODO this one shoult be empty
- mv /oldshit /root/
-
- sync
-}
[cgit] Unable to lock slot /tmp/cgit/3a100000.lock: No such file or directory (2)