From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 4CA621FF0B0 for ; Fri, 09 Oct 2026 12:53:32 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id B885D2161F; Fri, 09 Oct 2026 12:53:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791543183; x=1792147983; darn=lists.proxmox.com; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=qgcewuwJEJ2Kg9F85mIz0kxUELf20fAxwlWn5K3MJtU=; b=WBaSgZMkgA4m8egKJsiXiIRV7Y8V/qVrwMI6WMiYjxORtRSKMiWGEapjP/xp3JAsuQ O7rvyOtGxUVZmGr4fiONmuFgV0eQa3KKiyE/DP0v+OnWUg6HuClpWEBMpec1INclMWbV vwu0YDrTscxjnN3ns+Z8L1CqSjPNkZnkQzYrbpWd6QvAcQzl4MHZRhaFa9jLXuUVtgZS l/CfsAxU7LvLqJVLJ0dAkC6RfWImL1c40aSso3sVMJa+GvqFSTf0gTDy5o/Jc1w8kmNm 3L4RsupiF5sel59HIgdErbVSnMpiL9qJmzTf+B2OdvT3NwjT+0oX+u9TyRrvfaBHKmx2 Lodw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791543183; x=1792147983; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=qgcewuwJEJ2Kg9F85mIz0kxUELf20fAxwlWn5K3MJtU=; b=KdzM05H634dVlG3DNhVY6UHQF60Kxp2PZjG49MeEoUxh0/m5ALSGvUacT6m7jVNH4J t9n4WC0jC4gZkfW/pC/JLRM8TTBGmlxtbJXzyRIB2aCrXSeZNiem9brarpIQwT8QGUsU QoICcELirkW+ZRCzJsOfGM4sv12zc7XUSwAD51w8Coc5K0ICRCdaN/snlCteY0B7mo8J CTe4fy/IbTVPiYtin25g4Cm5Ie7/ztL75wnA+ep1aNI+qZJMxJygTrj9Vtn1KiTFaUa3 eigpsAaVofZJDWhd5YqB1OHjzhOpjU9eLygrJsQP/+3vtXO6LlYCNUOzjwToReGnwQEA qkVg== X-Gm-Message-State: AFuF++nMCHuc9/THdJgbs6kh9Q4AVMnYaz4vHV2l5Slsb7FzPZjgUubP 2+/KEbKqO76+th7hwDZiMgzUNzutjYZdNU5LKit7RWjr33WQIZuNgXs9Ki21XJ3b X-Gm-Gg: AYBFou3KYR9SGn7cAuHMPLAI6stIr0fMS7EIh1w4awTECbpYh4ICLCV1bpbh3NXUgPU iQeK/1NvucWu1Vw2Q1g0h0Ycw3OMBd2FJ+d7sIIvgh4FHfPx0FP0p76mOnkGZfo1dGE7R/b4ZoQ R80RD06BajaJSB1ZlwCrHKzDk2tjtrZkb/FT08i93Vct6QlnY5M3kAEQjEMVldJVVPKokz7VfIo npOc6hfiwqQNvtknORW7pe5W904+nJJ+FGAKo4WGEpJX6Y+3A4Kr8F92lkwVKXaMC742I2bVbcx PQrxlYPZnoppUsIbOxh8L3OtPsQob7cnMgwzcxqd4xEASJ+rNBzgTyuulfh++y834IQhHvNCBNZ JZs6/pQTvvz/Mu2oVf8NZb4OO+T2U0FBdy1CUJE7+o4q3cDPZSwM0tyWBVxPdczic1R6E9404vc B9VRz0xtGq6tw1vgXgMwvnzzNWitx5dVDhAIgKolI69WlTPEVBpKiCwMMzS6IhJ4ZevewAP0ySe kivCn5TaQQtLA== X-Received: by 2002:a05:6a00:f04:b0:892:a8f1:c53d with SMTP id d2e1a72fcca58-897c76e25a4mr1409844b3a.22.1791543183012; Fri, 09 Oct 2026 03:53:03 -0700 (PDT) From: Kaiyang Wu X-Google-Original-From: Kaiyang Wu To: pve-devel@lists.proxmox.com Subject: [PATCH installer 3/4] tui: show wear-out warning when installing on MMC devices Date: Fri, 9 Oct 2026 18:52:38 +0800 Message-ID: <20261009105242.144965-4-wukaiyang@loongfans.cn> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261009105242.144965-1-wukaiyang@loongfans.cn> References: <20261009105242.144965-1-wukaiyang@loongfans.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.000 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy FREEMAIL_ENVFROM_END_DIGIT 1 Envelope-from freemail username ends in digit FREEMAIL_FROM 0.001 Sender email is commonly abused enduser mail provider RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: KFTVVI7E74UXYKBUHMJC76IH2PWZJ5QK X-Message-ID-Hash: KFTVVI7E74UXYKBUHMJC76IH2PWZJ5QK X-MailFrom: wukaiyang2003@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Kaiyang Wu X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Signed-off-by: Kaiyang Wu --- proxmox-tui-installer/src/main.rs | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/proxmox-tui-installer/src/main.rs b/proxmox-tui-installer/src/main.rs index e9f47a9..243457d 100644 --- a/proxmox-tui-installer/src/main.rs +++ b/proxmox-tui-installer/src/main.rs @@ -391,10 +391,31 @@ fn bootdisk_dialog(siv: &mut Cursive) -> InstallerView { match options { Some(Ok(options)) => { siv.with_user_data(|state: &mut InstallerState| { - state.options.bootdisk = options; + state.options.bootdisk = options.clone(); }); - switch_to_next_screen(siv, InstallerStep::Timezone, &timezone_dialog); + if options + .disks + .iter() + .fold(false, |acc, disk| acc || disk.path.contains("mmcblk")) + { + siv.add_layer( + Dialog::text( + "Proxmox VE is write intensive, MMC devices may wear out quickly.", + ) + .title("Warning") + .button("Ok", |siv| { + siv.pop_layer(); + switch_to_next_screen( + siv, + InstallerStep::Timezone, + &timezone_dialog, + ); + }), + ); + } else { + switch_to_next_screen(siv, InstallerStep::Timezone, &timezone_dialog); + } } Some(Err(err)) => siv.add_layer(Dialog::info(format!("Invalid values: {err}"))), -- 2.56.0