Update paths to /writable for snappy

This commit is contained in:
Mathieu Trudel-Lapierre 2016-07-09 12:59:10 -04:00 committed by Michael Hudson-Doyle
parent ec5f94bf7d
commit 1c7fbac977
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ import os
import sys import sys
from logging.handlers import TimedRotatingFileHandler from logging.handlers import TimedRotatingFileHandler
LOGDIR = ".subiquity" LOGDIR = "/writable/.subiquity"
LOGFILE = os.path.join(LOGDIR, "subiquity-debug.log") LOGFILE = os.path.join(LOGDIR, "subiquity-debug.log")

View File

@ -202,7 +202,7 @@ def sudo_user():
def mark_firstboot_complete(): def mark_firstboot_complete():
""" Touch our firstboot-complete eyecatcher """ """ Touch our firstboot-complete eyecatcher """
log.info('marking firstboot service complete') 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)): if not os.path.exists(os.path.dirname(firstboot)):
os.makedirs(os.path.dirname(firstboot)) os.makedirs(os.path.dirname(firstboot))
with open(firstboot, 'w') as fp: with open(firstboot, 'w') as fp: