Commits

stacklet committed 151342f

Fixed bug in grub installation

  • Participants
  • Parent commits 24f2ad6
  • Tags beta_release_20100313

Comments (0)

Files changed (1)

src/stacklet/task/storage/bundler.py

         if (self._destFormat in self._REQUIRES_BOOT_LOADER):            
             cmd = 'cp %s/stage[1-2] %s%s' % (buildContext.get_global_asset_dir() + 'grub', self._tempMountPoint, '/boot/grub/')
             self.exec_command(buildContext, cmd)
-            if not os.access(os.path.join(self._tempMountPoint, self._DEFAULT_GRUB_CONFIG), os.F_OK):
+            if not os.access(os.path.join(self._tempMountPoint, self._DEFAULT_GRUB_CONFIG[1:]), os.F_OK):
                 grubConfig = self._SECONDARY_GRUB_CONFIG
         
         rootDevice = []
 
 stacklet.util.objectify._XO_bundler = _XO_bundler
 stacklet.util.objectify._XO_stk_bundler = _XO_bundler
- 
+