fix livecd 1
split out livecd configuration in functions