Skip to content

Commit

Permalink
gf-anaconda-cleanup: Remove cruft in /
Browse files Browse the repository at this point in the history
In particular the presence of `/etc/resolv.conf` was confusing,
even though it wasn't used.

Delete everything except `/boot` and `/ostree`.
  • Loading branch information
cgwalters committed Apr 25, 2019
1 parent eb3f85f commit ca538d4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/gf-anaconda-cleanup
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,13 @@ done
# And blow away all of /var - we want systemd-tmpfiles to be
# canonical
coreos_gf rm-rf "${stateroot}/var/*"
# And finally, remove some cruft from the *physical* root as nothing should be
# using those, Anaconda is ending up creating them. There are other
# dirs there like /proc /sys that nothing should be using either
# but I think dracut might do so temporarily. (The end state should really
# just be /ostree in the physical root)
for x in /dev /etc /root /home /proc /sys /tmp /run; do
coreos_gf rm-rf "${x}"
done

coreos_gf_shutdown

0 comments on commit ca538d4

Please sign in to comment.