Autoimage working nicely.

This commit is contained in:
Ian Gulliver
2016-04-01 10:04:24 -07:00
parent 0742efdfa8
commit 9a72c09d92
3 changed files with 16 additions and 6 deletions

View File

@@ -3,7 +3,6 @@
import argparse
import os
import shutil
import stat
import subprocess
import sys
import tempfile
@@ -171,7 +170,7 @@ class ImageBuilder(object):
with open(os.path.join(chroot_path, 'usr', 'sbin', 'policy-rc.d'), 'w') as fh:
fh.write('#!/bin/sh\n')
fh.write('exit 101\n')
os.fchmod(fh.fileno(), stat.S_IRWXU)
os.fchmod(fh.fileno(), 0o744)
def _InstallPackages(self, chroot_path):
os.environ['DEBIAN_FRONTEND'] = 'noninteractive'