Skip to content
Snippets Groups Projects
  • Dave Walker (Daviey)'s avatar
    334ef7d5
    setup_{RedHat,Debian}.sh, make more idempotent · 334ef7d5
    Dave Walker (Daviey) authored
    
    Previously, when either setup_{RedHat,Debian}.sh was ran
    multiple times a mess was created due to multiple loop
    devices being setup.
    
    This change now looks to see if '/docker' or '/swapfile'
    already exist, and not re-create them if they do.
    
    *However*, /var/lib/docker (/docker) is still wiped - but it
    means that the script can run and bring the system into a
    constant vanilla state.
    
    Change-Id: I169662fa04c2bf644672ca75c3ee579795943727
    Closes-Bug: #1586563
    Signed-off-by: default avatarDave Walker (Daviey) <email@daviey.com>
    334ef7d5
    History
    setup_{RedHat,Debian}.sh, make more idempotent
    Dave Walker (Daviey) authored
    
    Previously, when either setup_{RedHat,Debian}.sh was ran
    multiple times a mess was created due to multiple loop
    devices being setup.
    
    This change now looks to see if '/docker' or '/swapfile'
    already exist, and not re-create them if they do.
    
    *However*, /var/lib/docker (/docker) is still wiped - but it
    means that the script can run and bring the system into a
    constant vanilla state.
    
    Change-Id: I169662fa04c2bf644672ca75c3ee579795943727
    Closes-Bug: #1586563
    Signed-off-by: default avatarDave Walker (Daviey) <email@daviey.com>