Message ID | 20240709122211.4108193-1-niko.mauno@vaisala.com |
---|---|
State | Accepted, archived |
Commit | 711ee36e88c8968e3c45ea787b3adcf64352adf9 |
Headers | show
Return-Path: <niko.mauno@vaisala.com> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF9A7C3DA47 for <webhook@archiver.kernel.org>; Tue, 9 Jul 2024 12:22:49 +0000 (UTC) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (EUR03-DBA-obe.outbound.protection.outlook.com [40.107.104.114]) by mx.groups.io with SMTP id smtpd.web11.11587.1720527764914161539 for <openembedded-core@lists.openembedded.org>; Tue, 09 Jul 2024 05:22:45 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@vaisala.com header.s=selector1 header.b=V/C/amnC; spf=permerror, err=parse error for token &{10 18 spf3.vaisala.com}: parse error for token &{10 18 _spf-dc57.sapsf.eu}: limit exceeded (domain: vaisala.com, ip: 40.107.104.114, mailfrom: niko.mauno@vaisala.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n9/5oEFK3sUHFtmY/Xr/5di04Dj+kimGs1x8rAxubqT72CmeK5Teebr5WQcm+GSD+vKGDQGvpTBqdjPbOhZmrRAj7pMuOpZNRRkGnW83308se3avhvyEAf8GPdx4mF0+rRDpDudz5aoiUXzpNyiNowjjdzr1lQM7iOQgCyg0wnHHjbV2DJCh4GygN/LCAGooAuSimUaJi4YKmC6EOeu9l795OVlLQ8z/yhFF1QJODksjLHBw2S+R49DMlYJrjToThOobx7IxwVbHYGVZn8/LGbtFgo1RbkqKvdUGpYJMC2qJ+n2X/QqAaPvr/o0FTfOEopiM5nb1Hz0TCGPVEjIFdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/KDC2b+ltMIV4oAmDCQDEtSuMRZ/IiqdZODoCILwT+A=; b=DIoqW4bhIjw4skZDOLdWguRCHTpt2+DcVLgjznf9f3bfwafBoG18qKg4fdV84gJK2ucJ4ycrUvVfwm56Z8RJ671QI8SUYXKjqIQOOUIw2v4759XJRADOPM6ZpLEL/BOSt7PIvlIMso+YtSYQreGePdabFD9h9rIpB4n9pxz/OElznFCIItwpLqRuVj8B8Mt+7kxrjyc7MfJygxRMZ0o6EaOSXK8FuegqbeR8GGS3mSFj/XmcXzadzdejscxcEXprPiS44LlB37Xl1C6qifi3Ke9CnKp9AqiFPTTGUa1Pjxjpg3m8O67z81tmHvS+Y3/VEISHqf1vvpwsVPU3qN3nmQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vaisala.com; dmarc=pass action=none header.from=vaisala.com; dkim=pass header.d=vaisala.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vaisala.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/KDC2b+ltMIV4oAmDCQDEtSuMRZ/IiqdZODoCILwT+A=; b=V/C/amnC5jO3nqvQw6V190tp+O8cDBylpOcFCdlG9rxAxIWYZjSyOGwyMDwXpHDkZG8q8kwunlUngmy0XZRKeahAho9XclLNqQJKT4sDQR8LYqNHOPQ5qJM/oG8DeQo5NboJ51Qf8xtIv7T+88puJL09pmF2UUObUEqubLdERHH5J+CuEHgUe8ksA9Uy2ZW6qTGpK1o3QHCm9pode8tCaaWeLcy8Pr9up+Y72cg6VV8OcHAm0KsGJLxTQVz4Q4O8My1IzlTkyENbcRu1xH92i2V8sKvYuiChKaeTpDsj9pV0Dr/lzet2n2LMOXEpDa78ZNoVxWqT2+fvUixxpYXscA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vaisala.com; Received: from AS4PR06MB8447.eurprd06.prod.outlook.com (2603:10a6:20b:4e2::11) by AM7PR06MB6611.eurprd06.prod.outlook.com (2603:10a6:20b:1a8::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.36; Tue, 9 Jul 2024 12:22:42 +0000 Received: from AS4PR06MB8447.eurprd06.prod.outlook.com ([fe80::af93:b150:b886:b2bc]) by AS4PR06MB8447.eurprd06.prod.outlook.com ([fe80::af93:b150:b886:b2bc%5]) with mapi id 15.20.7741.033; Tue, 9 Jul 2024 12:22:42 +0000 From: niko.mauno@vaisala.com To: openembedded-core@lists.openembedded.org CC: Niko Mauno <niko.mauno@vaisala.com> Subject: [PATCH v2] systemd: Mitigate /var/log type mismatch issue Date: Tue, 9 Jul 2024 12:22:11 +0000 Message-ID: <20240709122211.4108193-1-niko.mauno@vaisala.com> X-Mailer: git-send-email 2.39.2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-ClientProxiedBy: GV3PEPF00003677.SWEP280.PROD.OUTLOOK.COM (2603:10a6:158:401::393) To AS4PR06MB8447.eurprd06.prod.outlook.com (2603:10a6:20b:4e2::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS4PR06MB8447:EE_|AM7PR06MB6611:EE_ X-MS-Office365-Filtering-Correlation-Id: 02618ea5-3bc4-4737-4253-08dca011d4bb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|366016|376014|38350700014; X-Microsoft-Antispam-Message-Info: HJpdOPAOUu+LFzyYw0DFrA1QKRg3qKRMrfYBY/NsuNKjjmKkqZ6Xs+wOjuB1aJU6/mofPESEgN9SHDjO94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eDpvi1EYsGX2LZkaPkUqTiloavKVkcbawO0iNvjLFVgGaQhKJS1VUPRsL4bhqUWL26aysZvAccOQy8v8KZ7ZtJ/Dx9PiPizW5ws6RE9AbBjIc/TX5C/gFTDjmF3sNNA3wkww+af352b8k/5xU4E+MzsUNlF268zuJORFeKim15N1g3gxfwwqxrzZx+iwK0nUSQ1n7rUs0vGuwU5vJRt128i0lYLRUN/r/edkMOXQsmci6l56vb0M5NJD0mzVrx8/uAmco584C7g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS4PR06MB8447.eurprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(52116014)(366016)(376014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: LQvmfXeMTgJGjAMu3zU/cTDOY9qZEdCatOZmuYBIPuWT23x2ZcvMYneRIOIgntTaE3AEYa7203hAn1ux9Y1fedtbC5sbxLgIazt5T0IF6bW4by3owTY2jd6OK76Azfm1izQIRSUubnXJf5H/yyZMMHIHE5fLavOrdzikcB1z1mx+uL3nb1Jx3K/13luEdMrgEosTmMNc7WE6LI5duklKASms5E3nqts4HjD6gsF85a35yQAHB557HmrkU41Zi/Gri0zNn/fjKFAU+ZaRkYqvJtLoJHUl6Ig/hYwXEUEgEfRWx1YNyraQI6UpQjyFTYYRihxs2amqyNxJWJBYkiwJEKHML3NxA6sStB8nPrWlYSY3DyJFu9tMgtkHNSw/2eSjw/2yFXV8PG2TbgM3hASI+F0lsBP3J38nL5mIJiPj0eaUyWOpHsE1TnGegMoxHdvie3CbtJ59ez1sxDHRaqRwa/dWqmoqqYN4okGO34RbSqyNTJMj/d57TzFMlu89yGtY3sLUULGvQya/UwRo9ysMucMP3b+dm+MIAGKzqvFMghVtebMc4t5g3LDPLhVVUQJv6Fy7OIKnzsAEB2dK6iPLE6dQf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4737-4253-08dca011d4bb X-MS-Exchange-CrossTenant-AuthSource: AS4PR06MB8447.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2024 12:22:42.4844 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 6d7393e0-41f5-4c2e-9b12-4c2be5da5c57 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 4f9mPB5v1zuaixQNu7u1G7RNWZDioVvtvZaT+Uge0vQSW7RyFLK13OGlYJw7WTbrqNIAE1T0lRiVmdJWpPaCSg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR06MB6611 List-Id: <openembedded-core.lists.openembedded.org> X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for <openembedded-core@lists.openembedded.org>; Tue, 09 Jul 2024 12:22:49 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/201656 |
Series |
[v2] systemd: Mitigate /var/log type mismatch issue
|
expand
|
diff --git a/meta/recipes-core/systemd/systemd_255.6.bb b/meta/recipes-core/systemd/systemd_255.6.bb index 0376412f61..db37776fd6 100644 --- a/meta/recipes-core/systemd/systemd_255.6.bb +++ b/meta/recipes-core/systemd/systemd_255.6.bb @@ -313,9 +313,10 @@ do_install() { fi if "${@'true' if oe.types.boolean(d.getVar('VOLATILE_LOG_DIR')) else 'false'}"; then - # /var/log is typically a symbolic link to inside /var/volatile, - # which is expected to be empty. + # base-files recipe provides /var/log which is a symlink to /var/volatile/log rm -rf ${D}${localstatedir}/log + printf 'L\t\t%s/log\t\t-\t-\t-\t-\t%s/volatile/log\n' "${localstatedir}" \ + "${localstatedir}" >>${D}${nonarch_libdir}/tmpfiles.d/00-create-volatile.conf elif [ -e ${D}${localstatedir}/log/journal ]; then chown root:systemd-journal ${D}${localstatedir}/log/journal