From 815f4f4007218754666595e0a26818db836ee20b Mon Sep 17 00:00:00 2001 From: Julien Semaan Date: Wed, 23 Feb 2022 13:05:42 -0500 Subject: [PATCH] run mysqld as mysql user in ISO preseed --- ci/debian-installer/preseed.cfg.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/debian-installer/preseed.cfg.tmpl b/ci/debian-installer/preseed.cfg.tmpl index 0f42e5ffb3a..54b289a3cf0 100644 --- a/ci/debian-installer/preseed.cfg.tmpl +++ b/ci/debian-installer/preseed.cfg.tmpl @@ -491,6 +491,6 @@ d-i preseed/late_command string \ echo "SET PASSWORD FOR root@'localhost' = PASSWORD('');" > /target/tmp/reset-root.sql ; \ mkdir /target/run/mysqld ; \ chroot /target chown mysql: /run/mysqld/ ; \ - chroot /target timeout 10 mysqld --skip-networking --init-file /tmp/reset-root.sql ; \ + chroot /target timeout 10 mysqld --skip-networking --init-file /tmp/reset-root.sql --user=mysql > /target/var/reset-root.log 2>&1 ; \ rm -f /target/tmp/reset-root.sql