Received: from a3i743.smtp2go.com (a3i743.smtp2go.com [203.31.38.231]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 6DBD9225BC1 for <~alpine/users@lists.alpinelinux.org>; Sun, 8 Dec 2024 08:33:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smtpservice.net; i=@smtpservice.net; q=dns/txt; s=a1-4; t=1733646784; h=feedback-id : x-smtpcorp-track : date : message-id : to : subject : from : reply-to : sender : list-unsubscribe : list-unsubscribe-post; bh=vsQCzduCWsq/PnlaSL9YRaUT4Kd9ASc8dIxhMdm7W1Y=; b=0bi0ue9mjKzSFtTKiKGI6sOAThemWLtG/PMBtLy9QQCaEZVNy9X1A7mhxaXLeMbi3bZsM sBSOtAC6h5V1a6Uu9xWn1hBzbs5KjCWUx52P88D+ZDtEOEyPiEubuXR4CCM7sz7O9tdfdTB WU84gnYdsVC8h4635KiDiFYtn7HwPZy9fd1SvSj2slMvfLCJuNyLQgxj9nVSRPypQ6AHCa2 noXRnZNs2Q2txbpyOmwAGXKmK4+amYGwQRL+iBoEXQz8QKxgfvtd8wPFtP8OXHI5uw7fMwz TDXKnjtLzu/whmNxTJB7eBxb1XCAOla8RN3K65f22mEU8x/W3Ih6rz2C76/A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imc.sh; i=@imc.sh; q=dns/txt; s=s948146; t=1733646784; h=from : subject : to : message-id : date; bh=vsQCzduCWsq/PnlaSL9YRaUT4Kd9ASc8dIxhMdm7W1Y=; b=X2ZY/jVkNELOmKrpnAMt7MG+6I6G4Kr2WOYZz9dg2u9DAdcHezEvgzEtcvyg6zbA/cNUI eoWVI0NqzdiLZX1hSdi8t0uCDG/brvJN0tFABOYNFYDQV3k/5Xc54OhnkBy4jbYhh0MnEi/ /+dHeRqAcZo2i/YsMV57hgdMfEnSUT8XdOUOmxaZFf5mO5KAxfS8V7hNwxzzhAnJ1qumquF wOdOSBAtuZaY+4aiU13YLhWkJq76JEwZl/4wcZnr5EhbcTiM+gbegjGWPSECg0ProhcZaqT pxLSudl3wjqqkwkW43mGx8EkgchkstEJNFPlUyeGbqImkGFQSH6yPikeVO1g== Received: from [10.211.245.84] (helo=mail.imc.sh) by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97.1-S2G) (envelope-from ) id 1tKCis-4o5NDgrv2ws-hzzj for ~alpine/users@lists.alpinelinux.org; Sun, 08 Dec 2024 08:33:02 +0000 Received: from mail.imc.sh (unknown [127.0.1.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mail.imc.sh (Postfix) with ESMTPSA id 6B0885DB1F for <~alpine/users@lists.alpinelinux.org>; Sun, 08 Dec 2024 08:33:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imc.sh; s=dkim; t=1733646780; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vsQCzduCWsq/PnlaSL9YRaUT4Kd9ASc8dIxhMdm7W1Y=; b=HBBCRdJOpyt3oVP3TbQWhA+3QaTxxT2hY9f5Hn0OK/N6jDdp+hB7+8v01S63mZpweueWIh gwf2bxi+mxCtJ3suCBuSyOSyGrQu5X19j3KqYfEERu0Zpez+/ZjFJZXIAl77Sx37lolJfM 7sTGkwePypO0SfoFx+6op8mNhBwFWAA= MIME-Version: 1.0 Date: Sun, 08 Dec 2024 08:33:00 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: RainLoop/1.17.0 From: ian@imc.sh Message-ID: <50365794bfc91478636a640a438f9d65@imc.sh> Subject: Some packages not restored after diskless mode reboot To: ~alpine/users@lists.alpinelinux.org X-Report-Abuse: Please forward a copy of this message, including all headers, to Feedback-ID: 948146m:948146aGlArf6:948146s00ZF1JR77 X-smtpcorp-track: cTuLHZ1iThUC.R7oNqKH7Yf93.9IjTgw9MlkS I set up a diskless system following the instructions on the wiki. After = rebooting the system, some packages are not being reinstalled. The missin= g packages come back after running `apk fix` manually. There are no error= s displayed in the boot output (with quiet disabled) while the other pack= ages are being installed. ``` # cat /etc/apk/world alpine-base busybox-mdev-openrc cfdisk chrony file htop iftop iotop lsblk openssh samba vim ``` One package that's not installing is `samba`. I've confirmed that samba p= ackages are in the cache: ``` # ls /etc/apk/cache/ | grep samba libauth-samba-4.20.6-r1.3c28fdae.apk samba-client-4.20.6-r1.c1461f5a.apk samba-client-libs-4.20.6-r1.c5095c38.apk samba-common-4.20.6-r1.fe1d4120.apk samba-common-server-libs-4.20.6-r1.8ec624e9.apk samba-common-tools-4.20.6-r1.06ae6656.apk samba-libs-4.20.6-r1.fa3bccb2.apk samba-server-4.20.6-r1.a8602cf5.apk samba-server-openrc-4.20.6-r1.a3abe0ae.apk samba-util-libs-4.20.6-r1.68790877.apk ``` Inspecting the APKINDEX file in the cache, there's an entry for samba inc= luding its dependencies: ``` # tar -xvf /etc/apk/cache/APKINDEX.33b75773.tar.gz -O APKINDEX | grep -B 1 -A12 'P:samba$' C:Q1FyDtEli/WhTz5qGizq/rDkJaLzk=3D P:samba V:4.20.6-r1 A:aarch64 S:1266 I:0 T:Tools to access a server's filespace and printers via SMB U:https://www.samba.org/ L:GPL-3.0-or-later AND LGPL-3.0-or-later o:samba m:Natanael Copa t:1733128458 c:ca678c267486553e3a9046371475ded651977772 D:samba-server=3D4.20.6-r1 samba-client=3D4.20.6-r1 samba-common-tools=3D= 4.20.6-r1 ``` Interestingly, manually attempting to install `samba` from the cache with= out the network also fails: ``` # apk add samba --no-network ERROR: unable to select packages: samba-4.20.6-r1: masked in: --no-network satisfies: world[samba] ``` It appears that samba is somewhat special, in that it's a meta-package th= at has no apk file, but has dependencies on `samba-common-tools`, `samba-= server`, and `samba-client`. I've confirmed that if I explicitly add tho= se three dependencies to my world, the packages do get installed after a = reboot. This feels to me like a bug with how apk handles populating at boot from = its offline cache. It took me a long time to figure out that the meta-pac= kage was the issue, since apk silently continues during the boot process,= never mentioning that it can't select the package. -ian