[arch-releng] [PATCH 1/5] [archiso] Remove old code (now redundant)
/etc/mtab symlink is part of [filesystem] since long time
Signed-off-by: Gerardo Exequiel Pozzi
This was recently enabled in [systemd] package.
Signed-off-by: Gerardo Exequiel Pozzi
Am 23.10.2012 17:03, schrieb Gerardo Exequiel Pozzi:
This was recently enabled in [systemd] package.
Signed-off-by: Gerardo Exequiel Pozzi
--- archiso/mkarchiso | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/archiso/mkarchiso b/archiso/mkarchiso index b9f12c1..95bb67f 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -255,6 +255,10 @@ _cleanup () { if [[ -d "${work_dir}/root-image/var/log" ]]; then find "${work_dir}/root-image/var/log" -type f -delete fi + # Avoid journald use permanent storage (Storage=auto) + if [[ -d "${work_dir}/root-image/var/log/journal" ]]; then + rm -rf "${work_dir}/root-image/var/log/journal" + fi # Delete all temporary files and dirs if [[ -d "${work_dir}/root-image/var/tmp" ]]; then find "${work_dir}/root-image/var/tmp" -mindepth 1 -delete
This is more about style, but maybe we should explicitly disable it in /etc/systemd/journald.conf (Storage=volatile). -- Pierre Schmitz, https://pierre-schmitz.com
On 10/26/2012 06:36 AM, Pierre Schmitz wrote:
Am 23.10.2012 17:03, schrieb Gerardo Exequiel Pozzi:
This was recently enabled in [systemd] package.
Signed-off-by: Gerardo Exequiel Pozzi
--- archiso/mkarchiso | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/archiso/mkarchiso b/archiso/mkarchiso index b9f12c1..95bb67f 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -255,6 +255,10 @@ _cleanup () { if [[ -d "${work_dir}/root-image/var/log" ]]; then find "${work_dir}/root-image/var/log" -type f -delete fi + # Avoid journald use permanent storage (Storage=auto) + if [[ -d "${work_dir}/root-image/var/log/journal" ]]; then + rm -rf "${work_dir}/root-image/var/log/journal" + fi # Delete all temporary files and dirs if [[ -d "${work_dir}/root-image/var/tmp" ]]; then find "${work_dir}/root-image/var/tmp" -mindepth 1 -delete This is more about style, but maybe we should explicitly disable it in /etc/systemd/journald.conf (Storage=volatile).
yes, but I prefer to maintain few custom files as possible. -- Gerardo Exequiel Pozzi \cos^2\alpha + \sin^2\alpha = 1
/tmp is mounted as tmpfs since archiso implements own chroot code.
Signed-off-by: Gerardo Exequiel Pozzi
Leave the work to the [nss-myhostname] package that is now in {base}
and is configured by default in [filesystem] (/etc/nsswitch.conf).
Signed-off-by: Gerardo Exequiel Pozzi
wooohoooo! Fixed in syslinux 4.06 :)
Signed-off-by: Gerardo Exequiel Pozzi
Am 23.10.2012 17:03, schrieb Gerardo Exequiel Pozzi:
wooohoooo! Fixed in syslinux 4.06 :)
Signed-off-by: Gerardo Exequiel Pozzi
Finally!
participants (3)
-
Gerardo Exequiel Pozzi
-
Pierre Schmitz
-
Thomas Bächler