Bug#652946: partman-target should not create /var/run
On Wed, Jul 11, 2012 at 07:34:10PM +0100, Rui Bernardo wrote:
> Attached is an eventual patch that could fix the issue.
Sorry, the previous patch didn't create /target/run/lock. Better create
it to prevent other possible failures about missing /run/lock.
New patch attached.
>From 8e6298618e3583fa92fd106d42bcf7d24e673a42 Mon Sep 17 00:00:00 2001
From: "Rui M. P. Bernardo" <rui.bernardo.pt@gmail.com>
Date: Thu, 12 Jul 2012 00:38:11 +0100
Subject: [PATCH] create /run instead of /var/run in target. Closes #652946.
---
finish.d/mount_partitions | 4 ++--
1 ficheiro modificado, 2 adições(+), 2 eliminados(-)
diff --git a/finish.d/mount_partitions b/finish.d/mount_partitions
index 9c8499e..a0a716d 100755
--- a/finish.d/mount_partitions
+++ b/finish.d/mount_partitions
@@ -62,8 +62,8 @@ for f in $fstab; do
/)
# Create these before /var is mounted,
# so that they can be mounted as tmpfses
- mkdir -p /target/var/lock
- mkdir -p /target/var/run
+ mkdir -p /target/run
+ mkdir -p /target/run/lock
;;
esac
continue 2
--
1.7.10
Reply to: