fix permissions for boot img generation