An approach to solving the 'different paths' upgrade problem
Jelmer Vernooij
jelmer at samba.org
Sat Aug 20 06:03:17 MDT 2011
On Sat, Aug 20, 2011 at 06:43:25PM +1000, Andrew Bartlett wrote:
> I've been thinking about the issue with upgrading Samba4 into a
> different prefix. Currently upgrade_from_s3 is rather clunky in this
> case.
> My proposed solution uses this command:
> testparm --parameter-name='netbios name' -l -s 2> /dev/null
> This works not only for netbios name, but also for state dir, private
> dir etc. It returns the option, even if the smb.conf doesn't set it -
> it was added by Debian for distro-specific scripting around smb.conf
> specified paths.
> From this, we can extract all the parameters we need. The advantage
> here is that we won't be using the Samba 4.0 testparm or loadparm system
> - we will have the user point us at the old testparm (with
> --old-testparm=), which will be compiled against the correct paths.
> We can then load this into the loadparm system using param.set_option(),
> or pass it to provision etc.
I'm not sure I understand all the parameters here, but wouldn't it be
possible to just point the generic smb.conf parser at that file and
use that to retrieve the options?
Cheers,
Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20110820/0dfcc24a/attachment.pgp>
More information about the samba-technical
mailing list