public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Kaiyang Wu <wukaiyang2003@gmail.com>
To: pve-devel@lists.proxmox.com
Cc: Kaiyang Wu <wukaiyang@loongfans.cn>
Subject: [PATCH installer 1/4] block: add support for MMC devices
Date: Fri,  9 Oct 2026 18:52:36 +0800	[thread overview]
Message-ID: <20261009105242.144965-2-wukaiyang@loongfans.cn> (raw)
In-Reply-To: <20261009105242.144965-1-wukaiyang@loongfans.cn>

Signed-off-by: Kaiyang Wu <wukaiyang@loongfans.cn>
---
 Proxmox/Sys/Block.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Proxmox/Sys/Block.pm b/Proxmox/Sys/Block.pm
index 89b01c9..3d1aff4 100644
--- a/Proxmox/Sys/Block.pm
+++ b/Proxmox/Sys/Block.pm
@@ -173,6 +173,8 @@ sub get_partition_dev {
         return "${dev}$partnum";
     } elsif ($dev =~ m|^/dev/nvme\d+n\d+$|) {
         return "${dev}p$partnum";
+    } elsif ($dev =~ m|^/dev/mmcblk\d+$|) {
+        return "${dev}p$partnum";
     } else {
         die "unable to get device for partition $partnum on device $dev\n";
     }
-- 
2.56.0




  reply	other threads:[~2026-10-09 10:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-09 10:52 [PATCH installer/proxmox 0/4] add mmcblk device support Kaiyang Wu
2026-10-09 10:52 ` Kaiyang Wu [this message]
2026-10-09 10:52 ` [PATCH installer 2/4] ui: show wear-out warning when installing on MMC devices Kaiyang Wu
2026-10-09 10:52 ` [PATCH installer 3/4] tui: " Kaiyang Wu
2026-10-09 10:52 ` [PATCH proxmox 4/4] schema: api-types: add support for " Kaiyang Wu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261009105242.144965-2-wukaiyang@loongfans.cn \
    --to=wukaiyang2003@gmail.com \
    --cc=pve-devel@lists.proxmox.com \
    --cc=wukaiyang@loongfans.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal