Skip to content

Commit

Permalink
Never allow grubenv to propogate to ISOs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Limonciello committed Oct 27, 2017
1 parent 4e6799f commit 7586c9e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dell/recovery_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,12 @@ def create_ubuntu(self, recovery, revision, iso, platform, sender=None, conn=Non
xorrisoargs.append('-m')
xorrisoargs.append(os.path.join(mntdir, 'md5sum.txt'))
regenerate_md5sum(tmpdir, mntdir)

#ignore any failures on disk
if os.path.exists(os.path.join(mntdir, 'factory', 'grubenv')):
xorrisoargs.append('-m')
xorrisoargs.append(os.path.join(mntdir, 'factory', 'grubenv'))

#Directories to install
xorrisoargs.append(tmpdir + '/')
xorrisoargs.append(mntdir + '/')
Expand Down

0 comments on commit 7586c9e

Please sign in to comment.