X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 13C46DC0D06 for ; Sun, 29 Mar 2015 18:24:32 +0000 (UTC) Received: by lahp7 with SMTP id p7so83745018lah.2 for ; Sun, 29 Mar 2015 11:24:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=rnN6V+LwfWR2FCAJ6dNPGENgDWftjP7Pbnd22YLS+k8=; b=mgOVNvL1TQoPXwQ81sLnTXTJFVx10dHqEgOSOlweRqfSTjeSUv5Aj6KThcIJ67bEa3 TN1IWc5xp/fjC/3gdrOFdlA7fuSLm/4//gGsfmLd+Vcfm1CNSu3g0rSyVBPTq/BgvboG KIdPD3yzG9oNzfH60STH9nkTFbHx6bgxWVsW5324tADW9ldquonnRcsQFY1imaXPlfit UC2Wso7CfHL+P8qD/7BCRVvI+ZmbuEz42ZaDP2g+pftYy8ZFCALHLNlaZHy4rHlngzGo NjyeExjFAFGxXW5f2hzLztzeRqPIPIJDp4yRZzHMcFbOdyyJAQ86YGxo50+vkqbn8JjP 6OyA== X-Received: by 10.152.87.115 with SMTP id w19mr25973697laz.66.1427653066206; Sun, 29 Mar 2015 11:17:46 -0700 (PDT) Received: from vostro ([83.145.235.202]) by mx.google.com with ESMTPSA id je5sm1592963lac.33.2015.03.29.11.17.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Mar 2015 11:17:45 -0700 (PDT) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Sun, 29 Mar 2015 21:16:52 +0300 From: Timo Teras To: HL Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] Bootable usb (vfat) local cache packages are not installed after reboot! Message-ID: <20150329211653.2a52ae3a@vostro> In-Reply-To: <55182E7C.2080101@gmail.com> References: <55182E7C.2080101@gmail.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-alpine-linux-musl) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, On Sun, 29 Mar 2015 19:55:24 +0300 HL wrote: > I haven't been around that much, but since I've seen some goodies, I > would like to give them a try! > > I booted from cdrom and made a bootable flash ( setup-bootable ). > > So far so good. > > However creating a local cache with setup-apkcache > > on usb (/media/usb/local-cache and softlink to /etc/apk/cache ) for > upgrading and installing my developed packages I discovered that > after each reboot the packages are not installed/upgraded to the ones > that reside within the usb cache dir. > > For instance > > apk update > apk upgrade > downloads a bunch of upgrades but after a reboot the newest packages > are not installed! > > I ask for your help based on your experience since my test machine is > on a remote site, thus I have no clue of what the boot-screen > messages are! I believe the issue is that the boot media mount point name during boot stage is different from what it is when running. I think the setup-bootable now sets alpine_dev=UUID=:vfat and causes the disk mounted at /media/UUID= during boot. If fstab happens to have the mount point named /media/usb they'll mismatch. Change boot parameter to alpine_dev=usbdisk:xxx or remove the fstab entry so that the boot media is kept in /media/UUID= (and repoint the /etc/apk/cache there). This apparently is a mismatch with the initramfs scripts, and the setup-bootable script. And needs to be fixed somewhere. Either making the boot device naming consistent. Or making initramfs script repoint apk cache to the correct place during boot. Thanks, Timo --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---