apt dir hierarchy retained in the chroot with essential variant #47

Open
opened 2024-11-07 17:02:52 +00:00 by mexsus · 1 comment

Hi. Is it expected that if bootstrapping a system using variant: essential (I use bdebstrap), /etc/apt/ and it's sub-dir hierarchy is present in the chroot upon completion of mmdebstrap execution?
The man page states:

   essential
           "Essential:yes" packages.

   apt     The essential set plus apt.

I was expecting that if using essential mmdebstrap would remove /etc/apt/ from the chroot.
I don't have any aptopt present.

Obviously this isn't a big deal as I can just rm -rf $1/etc/apt in a customize hook :)

Hi. Is it expected that if bootstrapping a system using ```variant: essential``` (I use bdebstrap), ```/etc/apt/``` and it's sub-dir hierarchy is present in the chroot upon completion of mmdebstrap execution? The man page states: > essential > "Essential:yes" packages. > > apt The essential set plus apt. I was expecting that if using ```essential``` mmdebstrap would remove ```/etc/apt/``` from the chroot. I don't have any ```aptopt``` present. Obviously this isn't a big deal as I can just ```rm -rf $1/etc/apt``` in a customize hook :)
Author

I can just rm -rf $1/etc/apt in a customize hook

Unfortunately, that results in:

...
I: cleaning package lists and apt cache...
done
done
E: failed to unlink /etc/apt/apt.conf.d/00mmdebstrap: No such file or directory

The same occurs even if it's done in a cleanup hook. Maybe it can't be removed? What do you think?

> I can just rm -rf $1/etc/apt in a customize hook Unfortunately, that results in: ``` ... I: cleaning package lists and apt cache... done done E: failed to unlink /etc/apt/apt.conf.d/00mmdebstrap: No such file or directory ``` The same occurs even if it's done in a cleanup hook. Maybe it can't be removed? What do you think?
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
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#47
No description provided.