[Bug 413610] New: /init not executable
https://bugzilla.novell.com/show_bug.cgi?id=413610 Summary: /init not executable Product: openSUSE.org Version: unspecified Platform: All OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: System Imaging AssignedTo: ms@novell.com ReportedBy: olh@novell.com QAContact: adrian@novell.com Found By: --- The file permissions of /init and /linurxrc are undefined. When an initrd tree is created, all kiwi related files should have proper permissions. I see no chmod anywhere. If new files are created by patch, the initrd can not be used. Also, the /linuxrc file is never used by the kernel if a cpio initrd is used. I guess cpio is the default nowadays (in kiwi), so its safe to remove /linuxrc support in favor of /init -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=413610
User ms@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=413610#c1
Marcus Schaefer
The file permissions of /init and /linurxrc are undefined. When an initrd tree is created, all kiwi related files should have proper permissions. I see no chmod anywhere.
the linuxrc code is stored in svn as suse-linuxrc. For example: system/boot/ix86/netboot/suse-linuxrc the execute permissions are set there and therefore also packages as executable script. The rpmlint checks also checks for that when kiwi creates a boot image (initrd) it simply copies the file with its current permissions so it stays executable. Do you have an issue with a non executable /init script ? If so I guess it's because the file /usr/share/kiwi/image/netboot/suse-linuxrc is not executable. Could that be the case ? Anyway I have added a chmod of the files when they get copied to be on the safe side
Also, the /linuxrc file is never used by the kernel if a cpio initrd is used. I guess cpio is the default nowadays (in kiwi), so its safe to remove /linuxrc support in favor of /init
/init and /linuxrc are the same files /linuxrc is copied as /init and I leave the /linuxrc because we still have support for ext2 based initrd's for older distributions -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com