-
1. Re: Studio 2.6 JeOS - custom inittab
kaszak May 23, 2012 11:09 AM (in response to kaszak)Update:
The field does work, the build process creates a jeos.instr file, that contains the addDirectory command.
Still looking for other opinions, doesn't seem like too many people used this feature so far.
K.
-
2. Re: Studio 2.6 JeOS - custom inittab
uagashe May 23, 2012 11:24 AM (in response to kaszak)Using custom instructions to addDirectory seems to be right approach.
-Umesh
-
3. Re: Studio 2.6 JeOS - custom inittab
kaszak May 23, 2012 12:34 PM (in response to uagashe)I think too.
The problem is: addDirectory will create the same directory structure as inherited, and won't start from the root.I.E.: if I create a custom set of files on the studio vapp under /jeosfiles, and use "addDirectory /jeosfiles" it will create the jeosfiles directory on the resulting vapp instead of putting the files into the root.This makes rather difficult to create a custom /etc/inittab for example, because it would need to rewrite to inittab of the studio vapp itself.I'm thinking if "removePathname /etc/inittab" followed by an addPackage with custom rpm works... -
4. Re: Studio 2.6 JeOS - custom inittab
kaszak May 23, 2012 12:50 PM (in response to kaszak)And the winner is:
addPackage <custom build rpm with /etc/inittab on studio host>.rpmremovePathname isn't necessary. Just for the record.
K
-
5. Re: Studio 2.6 JeOS - custom inittab
kaszak May 23, 2012 2:38 PM (in response to kaszak)And all the above works for any file on the filesystem, except initab.
Jeoser changes the inittab in tar file to be built, *than* mkjeosvm changes it back to it's own version, defined in /opt/vmware/etc/jeos/default/rootfs.xml.
So rootfs.xml needs to be edited for custom inittab, mostl other files can be changed from jeoser using addPackage etc.
K
-
6. Re: Studio 2.6 JeOS - custom inittab
uagashe May 23, 2012 3:07 PM (in response to kaszak)mkjeosvm has its own inittab and depends on it. I am not sure if it will work if you put your own inittab.
-Umesh
-
7. Re: Studio 2.6 JeOS - custom inittab
kaszak May 23, 2012 11:54 PM (in response to uagashe)It did
Modifying rootfs.xml was the key.
Now to build a static x64 dropbear...
K.