Bug 8781 - upgradeprovision fails if sysvol is missing
Summary: upgradeprovision fails if sysvol is missing
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Jelmer Vernooij
QA Contact: samba4-qa@samba.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-26 23:51 UTC by Jelmer Vernooij
Modified: 2012-02-29 11:37 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jelmer Vernooij 2012-02-26 23:51:49 UTC
If sysvol is missing (for example, for standalone installations), upgradeprovision will currently fail:

Traceback (most recent call last):
  File "/usr/share/samba/setup/upgradeprovision", line 1719, in <module>
    backup_provision(paths, backupdir)
  File "/usr/share/samba/setup/upgradeprovision", line 1526, in backup_provision
    shutil.copytree(paths.sysvol, os.path.join(dir, "sysvol"))
  File "/usr/lib/python2.7/shutil.py", line 169, in copytree
    names = os.listdir(src)
TypeError: coercing to Unicode: need string or buffer, NoneType found