summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorD. Johnson <fenris02@fedoraproject.org>2011-09-17 23:55:06 -0500
committerD. Johnson <fenris02@fedoraproject.org>2011-09-17 23:55:06 -0500
commitb189f1f3cb573756ffaef4aa93e4232d8015d481 (patch)
tree408474291c3b2f16e4bdb332d4598c391d0706e3
parent89e5e8ed4170cf9a151dc2c56c1dbfa1576bf19e (diff)
Added QUICKSTART
-rw-r--r--README.txt14
-rwxr-xr-xdistro-clean.sh14
2 files changed, 23 insertions, 5 deletions
diff --git a/README.txt b/README.txt
index c53681f..29ab78c 100644
--- a/README.txt
+++ b/README.txt
@@ -6,3 +6,17 @@ Read-Write: git://fedorapeople.org/~fenris02/cleanup.git
Read-Only: http://fenris02.fedorapeople.org/git/cleanup.git/
Last resort: ssh://fedorapeople.org/~fenris02/public_git/cleanup.git
+
+QUICKSTART (if you already have current backups):
+
+su -
+telinit 3
+curl -s 'http://fedorapeople.org/gitweb?p=fenris02/public_git/cleanup.git;a=blob_plain;f=distro-clean.sh;hb=HEAD' > /root/distro-clean.sh
+chmod 0700 /root/distro-clean.sh
+
+# Double check your backups exits and are current.
+./distro-clean.sh
+
+# Inspect the system, review transaction log, ...
+/root/tmp/raising-elephants.sh
+
diff --git a/distro-clean.sh b/distro-clean.sh
index 299e20a..0f79e18 100755
--- a/distro-clean.sh
+++ b/distro-clean.sh
@@ -30,8 +30,11 @@ fi
cat -<<EOT
Press ^C now if you do not have a good backup of your system.
-If you press enter, this script will try to auto-clean your system.
-Once complete, you will need to reboot.
+Please make sure you are not running on battery power. This cleanup may take
+30mins of heavy I/O and this may cause problems if you lose power.
+
+If you press enter, this script will try to auto-clean your system. Once
+complete, you will need to reboot.
EOT
read
@@ -218,8 +221,9 @@ sort -u -o ${TMPDIR}/FCAPS-REINSTALL_${DS}.txt ${TMPDIR}/FCAPS-REINSTALL_${DS}.t
#
[ -n "$VERBOSE" ] && echo 'Generate reports'
[ -n "$DEBUG" ] && read
-egrep -v '^.{9} c /' ${TMPDIR}/RPM-VA_${DS}.txt > ${TMPDIR}/URGENT-REVIEW_${DS}.txt
-egrep '^.{9} c /' ${TMPDIR}/RPM-VA_${DS}.txt > ${TMPDIR}/REVIEW-CONFIGS_${DS}.txt
+time rpm -Va > ${TMPDIR}/RPM-VA2_${DS}.txt 2>&1
+egrep -v '^.{9} c /' ${TMPDIR}/RPM-VA2_${DS}.txt > ${TMPDIR}/URGENT-REVIEW_${DS}.txt
+egrep '^.{9} c /' ${TMPDIR}/RPM-VA2_${DS}.txt > ${TMPDIR}/REVIEW-CONFIGS_${DS}.txt
find /etc /var -name '*.rpm?*' > ${TMPDIR}/REVIEW-OBSOLETE-CONFIGS_${DS}.txt
# Stop logging. No changes below this point.
@@ -255,7 +259,7 @@ chmod 0700 ${TMPDIR}/raising-elephants.sh
echo 'If you have questions, share this link.'
[ -x /usr/bin/fpaste ] || yum install -y fpaste
-fpaste ${TMPDIR}/{DUPLICATE-PACKAGES,FCAPS-REINSTALL,REVIEW-CONFIGS,REVIEW-OBSOLETE-CONFIGS,RPM-VA,SELINUX-CUSTOM-CONFIG,URGENT-REVIEW,YUM-SHELL}_${DS}.txt
+fpaste ${TMPDIR}/{DUPLICATE-PACKAGES,FCAPS-REINSTALL,REVIEW-CONFIGS,REVIEW-OBSOLETE-CONFIGS,RPM-VA2,SELINUX-CUSTOM-CONFIG,URGENT-REVIEW,YUM-SHELL}_${DS}.txt
echo ''
if [ -n "$LOG_ALL" ]; then