diff --git a/subiquitycore/log.py b/subiquitycore/log.py index b5b346c3..167e2f24 100644 --- a/subiquitycore/log.py +++ b/subiquitycore/log.py @@ -18,7 +18,7 @@ import os import sys from logging.handlers import TimedRotatingFileHandler -LOGDIR = ".subiquity" +LOGDIR = "/writable/.subiquity" LOGFILE = os.path.join(LOGDIR, "subiquity-debug.log") diff --git a/subiquitycore/utils.py b/subiquitycore/utils.py index 7ce00e60..8bfc7056 100644 --- a/subiquitycore/utils.py +++ b/subiquitycore/utils.py @@ -202,7 +202,7 @@ def sudo_user(): def mark_firstboot_complete(): """ Touch our firstboot-complete eyecatcher """ log.info('marking firstboot service complete') - firstboot = '/var/lib/firstboot/firstboot-complete' + firstboot = '/writable/firstboot-complete' if not os.path.exists(os.path.dirname(firstboot)): os.makedirs(os.path.dirname(firstboot)) with open(firstboot, 'w') as fp: