X-Original-To: alpine-user@lists.alpinelinux.org Received: from pv50p00im-ztdg10021101.me.com (pv50p00im-ztdg10021101.me.com [17.58.6.44]) by lists.alpinelinux.org (Postfix) with ESMTP id ADECCF855AC for ; Fri, 7 Jun 2019 14:34:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=04042017; t=1559918085; bh=35A61SHCxW8P9JfA7RkC/vb7E1VBlKGxbuR+vMR9AK4=; h=Content-Type:Mime-Version:Subject:From:Date:Message-Id:To; b=m/GUVYvkXMpFryow2zocbPGGgIdNEkqKnVKJliUvMK3cdgrZFs/ljbCT2RoURWu/t xx8b097C2G69NEGgjn5HDbMNL9qDN/n2gIjD3WSpc05cFNBhjBhFD6N2k7jWV2tvZQ BqAX7kKH6nr7Th0ifuKwJcM9hx5mfC4t3jInL10uAThI7fnSjGRWi7/yVLQBumKsi6 5KxtbbyqOWTZfTCs0QAb/c7iMNIg2QTWVQk7K+pvtezHhcNxcjAWCNjRa9Qvb5S1ic hc1FAycgUi8pzcXTpAPmYPaRGw1pXbtcjrqKiLo7eY0DCjPxKfIOEybMM5xYTEW+Rj UuI+TtWJL4gHQ== Received: from [192.168.1.23] (81-225-163-251-no2380.tbcn.telia.com [81.225.163.251]) by pv50p00im-ztdg10021101.me.com (Postfix) with ESMTPSA id C78F41820C2; Fri, 7 Jun 2019 14:34:44 +0000 (UTC) Content-Type: text/plain; charset=utf-8 X-Mailinglist: alpine-user Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 (1.0) Subject: Re: [alpine-user] Squashfs root filesystem From: Lars-Erik Helander X-Mailer: iPhone Mail (16D57) In-Reply-To: Date: Fri, 7 Jun 2019 16:34:42 +0200 Cc: alpine-user@lists.alpinelinux.org Content-Transfer-Encoding: quoted-printable Message-Id: <261DA982-9DC8-48F2-99C3-16953A511A3F@icloud.com> References: To: Paul Zillmann X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-06-07_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1812120000 definitions=main-1906070103 Hi Paul, thank you very much for the hints :) /Lars Skickat fr=C3=A5n min iPhone > 7 juni 2019 kl. 16:27 skrev Paul Zillmann : >=20 > Hello Lars-Erik, >=20 >> Am 07.06.19 um 12:40 schrieb Lars-Erik Helander: >> Is it possible to configure boot to run alpine using a read-only mounted s= quashfs file? >=20 > Yes it is, supposing the Kernel and initramfs are not part of the squashfs= file. > Take a look at [1] if the Kernel arguments work for you. >=20 > Otherwise you can modify the init script here: > - mount the fs where the squashfs lies > - mount the squashfs > - mount a tmpfs > - mount an overlayfs as the new root, lower dir would be squashfs, upp= er dir is the tmpfs > The scipt is located at /usr/share/mkinitfs/initramfs-init > Important parts at this section is "nlplug-findfs" and "exec /bin/busybox s= witch_root" to exit the initramfs into the bootet system. (You can replace t= he code in lines 479-490 as present in the linked repository) >=20 > Don't forget do add the squashfs and overlayfs Kernel modules into the ini= tramfs, then regenerate the initramfs. >=20 > You should also take a look into the Alpine Netboot which uses modloop ins= tead of squashfs. >=20 > 1: https://git.alpinelinux.org/mkinitfs/tree/initramfs-init.in#n455 >=20 > - Paul >=20 >>=20 >> The mkinit code seems to include some squashfs support, but I can not fig= ure if that could be used for my purpose. >>=20 >> /Lars >>=20 >> Skickat fr=C3=A5n min iPhone >>=20 >>=20 >> --- >> Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org >> Help: alpine-user+help@lists.alpinelinux.org >> --- >>=20 >=20 >=20 > --- > Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org > Help: alpine-user+help@lists.alpinelinux.org > --- >=20 --- Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org Help: alpine-user+help@lists.alpinelinux.org ---