From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aACHFcWbb2AKuAAAgWs5BA (envelope-from ) for ; Fri, 09 Apr 2021 02:11:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2DJoD8Wbb2A8GwAAbx9fmQ (envelope-from ) for ; Fri, 09 Apr 2021 00:11:49 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 995DB159C5 for ; Fri, 9 Apr 2021 02:11:48 +0200 (CEST) Received: from localhost ([::1]:52292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUekV-0006R0-BB for larch@yhetil.org; Thu, 08 Apr 2021 20:11:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUefp-0003im-Lr for help-guix@gnu.org; Thu, 08 Apr 2021 20:06:57 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:33544) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUefn-0006uh-Dm for help-guix@gnu.org; Thu, 08 Apr 2021 20:06:57 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 6414b045; Fri, 9 Apr 2021 00:06:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:cc:from:message-id; s= dkim; bh=HGvLpMHZClEmIqX34lOBmVi+cGwpDZN57Y9/zzpsdh0=; b=Iz2qrc9 BiDWT35ocE0kI7iXo2sW3uS/MzjskoSuIOlFIfWTxLFDMStAvIiT70CXFsHXnA+C uQuOmUgZeTqn6aigpZRPRkNpfW188rxGTFP0pSVQRQawvhzNSIVFaGULfrGf0cbK OY2haM++AeaaClqFjXNKZ7dEhTHiRJkWmzqowl4sg0dkvInLxteO8Zsj5X7g7BK+ cUGPQc/uTRQuEvUws+fN5pvQYul+zhiAnDs6H/7EBdv21Av1EkF+6iGKrsiWhBcV L3/Qb7NJ10XBzceBjIdcbClHtmWby6yjtlu7L8IdMJzwjuruOQqgIlv10aCgTGsN I66T/DUfMStG6Fg== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 38159133 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 9 Apr 2021 00:06:49 +0000 (UTC) Date: Thu, 08 Apr 2021 20:06:41 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <874kggfigv.fsf@disroot.org> References: <87a6qag2dh.fsf@disroot.org> <5F18EF49-1BC9-49E3-AEC7-21B7C8361F52@lepiller.eu> <874kggfigv.fsf@disroot.org> MIME-Version: 1.0 Subject: Re: How to create a service for contents of arbitrary file To: Bone Baboon From: Julien Lepiller Message-ID: <3F5B823B-3B83-42DB-AFBE-5966CBB66E71@lepiller.eu> Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617927108; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=vs4JyuqcEeAqcw5sdP45ng3tXoY3EVbR8ewYkxsYyOU=; b=lPzyu0AiQyqcCianoKz083ecVbvnLq+rssBffHGR4K7nlM55vGkoP9BAs7/rEeJlp0kOjy TuH7g2mR8u90EZslnjWw+GBs5/gRQc3fwjgRdiI56R69r3xCNr5s5Pxr/6Q8lL2maBwF3F xlVwYi4sC9mMtalbbJv1xXiJRT1h/X3uYRJhYjU1L0SYyCTc2/tKvm7ssm/RlMdiB9SmXe Qy1SDda5ual3WZ3YRI+w/ip9TbBOQA5kT7Xn6f3jbwtg4BB8R+H/W8XLxPRuZOD3YW7LpM Cb0KTGJA1pdMlwEhr2zkECTqHK1K8qFezXnQuSX8qgJeLcbGzNoKJekMx15QKw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617927108; a=rsa-sha256; cv=none; b=aQGniETpOKjXnTEQlidVT8Z+csdkLxFkeoh3kJ/psdWZUzkfSTSa0f+Y9d3doPqBsK1XEl WyYZ5zTXX2WW0vkNZBlC5TdyICv3hF0UO55Cf8xHzNkwjPWue8e5BGmNTWxdUa4pFERjnT LykVwZlhbkYwAuUuQQruFj6h3ImQHHughoxji1ZuqrzpGhEuUJnA+Tbf/EH0CbZjJNssyV rimwlRnUnYFSXwvBjZMzgYZC9+5d30t3o+W3gbvy++pIASVTjtIdrSbQQv8FvAp/QkpWs4 1zgFgN8t/9MCrORfiwmn/Yjl1PrcIlzWG7K4HjMwQaE7QyuELK80bEhAPSkd4w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=lepiller.eu header.s=dkim header.b="Iz2qrc9 "; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: 0.16 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=lepiller.eu header.s=dkim header.b="Iz2qrc9 "; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 995DB159C5 X-Spam-Score: 0.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: FQ9CN/Izzsj0 I think this is because you cannot replace a file a /sys like guix tries to= =2E Instead, it seems you can set a linux kernel argument on the command li= ne run by grub at startup=2E According to the internet, that would be "vt= =2Eglobal_cursor_default=3D0" You can set it up in your config by adding a kernel-arguments field to you= operating-system declaration, like this: (operating-system (kernel-arguments (cons "vt=2Eglobal_cursor_default=3D0" %default-kernel= -argumentt))) Hope that helps! Le 8 avril 2021 19:46:08 GMT-04:00, Bone Baboon a =C3=A9crit : > >Julien Lepiller writes: > >> There's special-files-service-type described here: >http://guix=2Egnu=2Eorg/manual/devel/en/html_node/Base-Services=2Ehtml#Ba= se-Services >> >> However, I'm not sure it will work in /sys=2E I guess you'll have to >try and report back :) > >Thank you for this suggestion=2E > >I added this to services in my system configuration: > >``` >(service special-files-service-type > `(("/sys/class/graphics/fbcon/cursor_blink" > "/home/user/no-blink")) >``` > >The contents of `home/user/no-blink` is "0"=2E > >When I run a system reconfiguration I get this error "guix system: >error: symlink: Operation not permitted: >"sys/class/graphics/fbcon/cursor_blink=2Enew"=2E > >Any ideas on how to overcome this error? > >The contents of `/sys/class/graphics/fbcon/cursor_blink` is reset to >"1" >every time the computer is turned on and the cursor is blinking=2E I >would like to get a service working that sets it to "0" so that I do >not >need to manually change this setting every time I boot the computer=2E