public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH v2] Fix missing /var/lib/dpkg/available in Buster rootfs
@ 2025-12-22  9:00 Anton Mikanovich
  2025-12-22  9:10 ` Anton Mikanovich
  2026-01-05  9:21 ` Anton Mikanovich
  0 siblings, 2 replies; 3+ messages in thread
From: Anton Mikanovich @ 2025-12-22  9:00 UTC (permalink / raw)
  To: isar-users; +Cc: Vladimir Burkin, Anton Mikanovich

From: Vladimir Burkin <mxvisor@gmail.com>

When building an image based on Debian Buster the rootfs installation
fails on dpkg because /var/lib/dpkg/available is missing.
isar-mmdebstrap.inc tries to work around this by adding an mmdebstrap
hook. The hook uses touch /var/lib/dpkg/available, but it runs on the
host rather than inside the mmdebstrap rootfs. The proposed fix is to
use the hook parameter $1 (the mmdebstrap rootfs path) when creating
the file.

Signed-off-by: Vladimir Burkin <mxvisor@gmail.com>
Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
index 80b13a9e..73fe9434 100644
--- a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
+++ b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
@@ -18,7 +18,7 @@ BOOTSTRAP_TMPDIR = "${WORKDIR}/tempdir"
 MM_HOOK_JESSIE = "/usr/share/mmdebstrap/hooks/jessie-or-older"
 DPKG_HOOKS ?= "${@'--hook-dir='+d.getVar('MM_HOOK_JESSIE') \
               if os.path.isdir(d.getVar('MM_HOOK_JESSIE')) \
-              else '--customize-hook=\'touch /var/lib/dpkg/available\''}"
+              else '--customize-hook=\'touch $1/var/lib/dpkg/available\''}"
 MMHOOKS:focal ?= "${DPKG_HOOKS}"
 MMHOOKS:buster ?= "${DPKG_HOOKS}"
 
-- 
2.34.1

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20251222090030.1922930-1-amikan%40ilbers.de.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] Fix missing /var/lib/dpkg/available in Buster rootfs
  2025-12-22  9:00 [PATCH v2] Fix missing /var/lib/dpkg/available in Buster rootfs Anton Mikanovich
@ 2025-12-22  9:10 ` Anton Mikanovich
  2026-01-05  9:21 ` Anton Mikanovich
  1 sibling, 0 replies; 3+ messages in thread
From: Anton Mikanovich @ 2025-12-22  9:10 UTC (permalink / raw)
  To: Vladimir Burkin; +Cc: isar-users, Baurzhan Ismagulov

Hello Vladimir,

Thanks for submitting the patch.
I've resent your commit as v2 with some formatting applied.
Here is the way how we send patches for the review on the list:

- Send in text form (no attachments, no html allowed).
- Title should shortly describe the fix.
- Commit message should describe what is done and why it is done.
- Field Signed-off is required to point on commit authors.
- Field From is nice to have.
- Title ~50 symbols, commit message lines <72 symbols.

Sending the patch can be done from git itself by the command like:

git send-email -1 --subject-prefix="PATCH v2" --to 
isar-users@googlegroups.com

where:
-1 - send 1 commit from the HEAD of current repo.
--subject-prefix="PATCH v2" - version 2 of patchset, can be just "PATCH" 
for v1.

22/12/2025 11:00, Anton Mikanovich wrote:
> From: Vladimir Burkin <mxvisor@gmail.com>
>
> When building an image based on Debian Buster the rootfs installation
> fails on dpkg because /var/lib/dpkg/available is missing.
> isar-mmdebstrap.inc tries to work around this by adding an mmdebstrap
> hook. The hook uses touch /var/lib/dpkg/available, but it runs on the
> host rather than inside the mmdebstrap rootfs. The proposed fix is to
> use the hook parameter $1 (the mmdebstrap rootfs path) when creating
> the file.
>
> Signed-off-by: Vladimir Burkin <mxvisor@gmail.com>
> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
> ---
>   meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
> index 80b13a9e..73fe9434 100644
> --- a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
> +++ b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
> @@ -18,7 +18,7 @@ BOOTSTRAP_TMPDIR = "${WORKDIR}/tempdir"
>   MM_HOOK_JESSIE = "/usr/share/mmdebstrap/hooks/jessie-or-older"
>   DPKG_HOOKS ?= "${@'--hook-dir='+d.getVar('MM_HOOK_JESSIE') \
>                 if os.path.isdir(d.getVar('MM_HOOK_JESSIE')) \
> -              else '--customize-hook=\'touch /var/lib/dpkg/available\''}"
> +              else '--customize-hook=\'touch $1/var/lib/dpkg/available\''}"
>   MMHOOKS:focal ?= "${DPKG_HOOKS}"
>   MMHOOKS:buster ?= "${DPKG_HOOKS}"
>   

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/95be0ec8-bc14-4b0e-94ae-75d14d338ac5%40ilbers.de.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] Fix missing /var/lib/dpkg/available in Buster rootfs
  2025-12-22  9:00 [PATCH v2] Fix missing /var/lib/dpkg/available in Buster rootfs Anton Mikanovich
  2025-12-22  9:10 ` Anton Mikanovich
@ 2026-01-05  9:21 ` Anton Mikanovich
  1 sibling, 0 replies; 3+ messages in thread
From: Anton Mikanovich @ 2026-01-05  9:21 UTC (permalink / raw)
  To: isar-users, Vladimir Burkin

Applied to next, thanks.

22/12/2025 11:00, Anton Mikanovich wrote:
> From: Vladimir Burkin <mxvisor@gmail.com>
>
> When building an image based on Debian Buster the rootfs installation
> fails on dpkg because /var/lib/dpkg/available is missing.
> isar-mmdebstrap.inc tries to work around this by adding an mmdebstrap
> hook. The hook uses touch /var/lib/dpkg/available, but it runs on the
> host rather than inside the mmdebstrap rootfs. The proposed fix is to
> use the hook parameter $1 (the mmdebstrap rootfs path) when creating
> the file.
>
> Signed-off-by: Vladimir Burkin <mxvisor@gmail.com>
> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
> ---
>   meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
> index 80b13a9e..73fe9434 100644
> --- a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
> +++ b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
> @@ -18,7 +18,7 @@ BOOTSTRAP_TMPDIR = "${WORKDIR}/tempdir"
>   MM_HOOK_JESSIE = "/usr/share/mmdebstrap/hooks/jessie-or-older"
>   DPKG_HOOKS ?= "${@'--hook-dir='+d.getVar('MM_HOOK_JESSIE') \
>                 if os.path.isdir(d.getVar('MM_HOOK_JESSIE')) \
> -              else '--customize-hook=\'touch /var/lib/dpkg/available\''}"
> +              else '--customize-hook=\'touch $1/var/lib/dpkg/available\''}"
>   MMHOOKS:focal ?= "${DPKG_HOOKS}"
>   MMHOOKS:buster ?= "${DPKG_HOOKS}"
>   

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/33163056-2abc-4ab9-9533-2cf932156642%40ilbers.de.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-01-05  9:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-22  9:00 [PATCH v2] Fix missing /var/lib/dpkg/available in Buster rootfs Anton Mikanovich
2025-12-22  9:10 ` Anton Mikanovich
2026-01-05  9:21 ` Anton Mikanovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox