tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: modules item #14 revisited



On Dec 7,  4:31pm, Christos Zoulas wrote:
} On Dec 7,  8:55pm, abs%absd.org@localhost (David Brownlee) wrote:
} 
} | Very much like this - would assume that modules.tgz goes away?

     I can't say I'm a fan of this.  I would hope that it goes away
once we get serious about having a stable KABI for modules.  Modules
shouldn't be tied to a particular kernel the way they currently
are.

} This is a good question. The problem is that if every kernel in a
} distribution includes its own copy of modules, we'll end up bloating
} the distribution a lot. For example on amd64 we distribute 4 kernels:
} 
} kern-GENERIC.tgz
} kern-GENERIC_KASLR.tgz
} kern-XEN3_DOM0.tgz      
} kern-XEN3_DOMU.tgz      
} 
} Does each one gets a copy of the "appropriate" (since XEN needs different

     Packing modules with the kernel kinda implies this.

} modules)? Or do we have a modules.tgz and a modules.xen3.tgz to be unpacked
} together with the kernel? And how is the unpacking done?

     This method would require sysinst to "know" what modules go with
which kernel and to setup things accordingly.

     BTW:

% tax tvzpf modules.tar.xz
drwxr-xr-x  0 root   wheel       0 Nov 10 04:16 .
drwxr-xr-x  0 root   wheel       0 Nov 10 03:01 ./etc
drwxr-xr-x  0 root   wheel       0 Nov 10 03:03 ./etc/mtree
-rw-r--r--  0 root   wheel  185780 Nov 10 04:16 ./etc/mtree/set.modules
drwxr-xr-x  0 root   wheel       0 Nov 10 02:48 ./stand
drwxr-xr-x  0 root   wheel       0 Nov 10 02:43 ./stand/amd64
drwxr-xr-x  0 root   wheel       0 Nov 10 02:43 ./stand/amd64/9.99.17
drwxr-xr-x  0 root   wheel       0 Nov 10 02:48 ./stand/amd64/9.99.17/modules
drwxr-xr-x  0 root   wheel       0 Nov 10 02:43 ./stand/amd64/9.99.17/modules/accf_dataready
-r--r--r--  0 root   wheel   19480 Nov 10 01:22 ./stand/amd64/9.99.17/modules/accf_dataready/accf_dataready.kmod
...
drwxr-xr-x  0 root   wheel       0 Nov 10 02:48 ./stand/amd64-xen
drwxr-xr-x  0 root   wheel       0 Nov 10 02:48 ./stand/amd64-xen/9.99.17
drwxr-xr-x  0 root   wheel       0 Nov 10 02:48 ./stand/amd64-xen/9.99.17/modules
drwxr-xr-x  0 root   wheel       0 Nov 10 02:48 ./stand/amd64-xen/9.99.17/modules/accf_dataready
-r--r--r--  0 root   wheel   19480 Nov 10 02:03 ./stand/amd64-xen/9.99.17/modules/accf_dataready/accf_dataready.kmod
...

Note that i386 includes an additional set of modules for Xen PAE.

}-- End of excerpt from Christos Zoulas


Home | Main Index | Thread Index | Old Index