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 authored and jlebon committed Apr 25, 2019
1 parent e9b6e8b commit bbf2b57
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 cruft from the *physical* root as nothing should be
# using those; Anaconda is creating them today.
for x in $(coreos_gf glob-expand '/*'); do
case $x in
/ostree/|/boot/) continue;;
*) coreos_gf rm-rf "${x}"
esac
done

coreos_gf_shutdown

0 comments on commit bbf2b57

Please sign in to comment.