-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sources.list link not handled #6
Comments
From my point of view, it is really unexpect |
If you use your own mirror you can not use As I said, it is a common procedure to use Of course you can always develop your own procedure to do it. |
@Kunzol Correct. My usage of apt sources may be "strange", here are my reasons:
|
Does not work if /etc/apt/sources.list is a link.
It copies the link into the tar file, bot not the file, where the link points to.
This is mainly an issue if you change sources.list via a config package (built with the help of dh_configpackage).
While running the "clone" it prints this:
The info command on the generated tar file:
There are several solutions for this.
add the link and the file the link points to.
This could break the config package, which is installed by apt-clone on the new host.
don't add the link at all
The file would be handled by the config package which is installed on the new host by apt-clone, but requires that the config package is available without the sources.list from the clone host.
add the linked file instead of the link
The file will be overwritten by the config package on the new host, but it would break the purge of the config package, because config packages save the original file and restore it on purge.
Handle the file according to the rules of "dh_configpackage"
Use
dpkg-divert --list /etc/apt/sources.list
to check if the file is handled as diversion.Download the package and add it to the clone-tar-file and ignore
/etc/apt/sources.list
.On restore install the config package from the clone-tar first.
Example for diversion:
The text was updated successfully, but these errors were encountered: