Merge pull request #420 from ishidawataru/rfs-bug-fix

rfs: fix bug that bash doesn't return on error
This commit is contained in:
Jeffrey Townsend
2018-07-18 11:19:57 -07:00
committed by GitHub

View File

@@ -389,8 +389,7 @@ class OnlRfsBuilder(object):
script = os.path.join(dir_, "tmp/configure.sh")
with open(script, "w") as f:
os.chmod(script, 0700)
f.write("""
#!/bin/bash -ex
f.write("""#!/bin/bash -ex
/bin/echo -e "#!/bin/sh\\nexit 101" >/usr/sbin/policy-rc.d
chmod +x /usr/sbin/policy-rc.d
export DEBIAN_FRONTEND=noninteractive