Skip to content

Commit

Permalink
run mysqld as mysql user in ISO preseed
Browse files Browse the repository at this point in the history
  • Loading branch information
julsemaan committed Feb 23, 2022
1 parent 7459960 commit 815f4f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/debian-installer/preseed.cfg.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 815f4f4

Please sign in to comment.