Unknown option: cache-dir #45

Closed
opened 2024-09-20 09:24:39 +00:00 by petervuto · 2 comments

Hi,

the README says: The following options, don't exist: --second-stage, --exclude, --resolve-deps, --force-check-gpg, --merged-usr and --no-merged-usr.

In porting my debootstrap calls to mmdebstrap, I ran into the issue that --cache-dir is also not supported.

In debootstrap this option allows the user to pass a folder with .deb files, and debootstrap takes files from there instead of upstream (if possible), significantly speeding up the bootstrap process. Support for it would be great, but I suppose the minimum fix would be to update the README line to mention this option.

Stack trace from the python code where I triggered this:

2024-09-20:11:12:47,521 INFO [image_bootstrap.py:200] Calling ['sudo', '/home/vutp/repos-remote/base-os-ci-cd/ci_cd/mmdebstrap/mmdebstrap', '--variant=minbase', '--components=main,non-free,contrib', '--include=bash-completion,ca-certificates,console-setup,efibootmgr,grub-efi-amd64,grub-efi-amd64-signed,linux-image-5.10.0-20-amd64,locales,lvm2,partclone,parted,python3,python3-yaml,shim-signed,sudo,systemd-sysv,udev,vim', '--arch=amd64', '--cache-dir=/home/vutp/.build_image/cache', '--keyring=/home/vutp/.build_image/c5a1fcb7-d5b6-4a0a-a1e4-9203619f0b2f/ruag_mirror.gpg', 'bullseye', '/home/vutp/.build_image/c5a1fcb7-d5b6-4a0a-a1e4-9203619f0b2f/installer_root.img-mount', 'https://debian-mirror.example.org:443/bullseye-amd64/bullseye/09-20-2024/snapshot-09-12-46/']..
Unknown option: cache-dir
Usage:
mmdebstrap [OPTION...] [SUITE [TARGET [MIRROR...]]]
2024-09-20:11:12:48,265 ERROR [image_bootstrap.py:210] Got return code = 2 from debootstrap.

mmdebstrap version: 395ee60 aka 1.5.3

Hi, the README says: `The following options, don't exist: --second-stage, --exclude, --resolve-deps, --force-check-gpg, --merged-usr and --no-merged-usr.` In porting my debootstrap calls to mmdebstrap, I ran into the issue that `--cache-dir` is also not supported. In debootstrap this option allows the user to pass a folder with .deb files, and debootstrap takes files from there instead of upstream (if possible), significantly speeding up the bootstrap process. Support for it would be great, but I suppose the minimum fix would be to update the README line to mention this option. Stack trace from the python code where I triggered this: > 2024-09-20:11:12:47,521 INFO [image_bootstrap.py:200] Calling ['sudo', '/home/vutp/repos-remote/base-os-ci-cd/ci_cd/mmdebstrap/mmdebstrap', '--variant=minbase', '--components=main,non-free,contrib', '--include=bash-completion,ca-certificates,console-setup,efibootmgr,grub-efi-amd64,grub-efi-amd64-signed,linux-image-5.10.0-20-amd64,locales,lvm2,partclone,parted,python3,python3-yaml,shim-signed,sudo,systemd-sysv,udev,vim', '--arch=amd64', '--cache-dir=/home/vutp/.build_image/cache', '--keyring=/home/vutp/.build_image/c5a1fcb7-d5b6-4a0a-a1e4-9203619f0b2f/ruag_mirror.gpg', 'bullseye', '/home/vutp/.build_image/c5a1fcb7-d5b6-4a0a-a1e4-9203619f0b2f/installer_root.img-mount', 'https://debian-mirror.example.org:443/bullseye-amd64/bullseye/09-20-2024/snapshot-09-12-46/'].. Unknown option: cache-dir Usage: mmdebstrap [OPTION...] [SUITE [TARGET [MIRROR...]]] 2024-09-20:11:12:48,265 ERROR [image_bootstrap.py:210] Got return code = 2 from debootstrap. mmdebstrap version: 395ee60 aka 1.5.3
Author

Ah, I see that this was already brought up in #42

Ah, I see that this was already brought up in https://gitlab.mister-muffin.de/josch/mmdebstrap/issues/42
Owner

Yes, but if you do not want to use a caching proxy like apt-cacher-ng, you can also solve this problem by using a hook. If you write a good hook script, I can ship it together with the mmdebstrap package so that it can get re-used.

Yes, but if you do not want to use a caching proxy like apt-cacher-ng, you can also solve this problem by using a hook. If you write a good hook script, I can ship it together with the mmdebstrap package so that it can get re-used.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: josch/mmdebstrap#45
No description provided.