[Tails-dev] [PATCH] sdmem is only called once in initramfs s…

Delete this message

Reply to this message
Autor: Ague Mill
Data:  
Dla: tails-dev
Temat: [Tails-dev] [PATCH] sdmem is only called once in initramfs script
Hi!

While working some more on memory wipe issues, I noticed that the
current `sdmem` initramfs script calls `seq` to start multiple `sdmem`
process. Unfortunately, `seq` is unavailable in the ramdisk environment.

This trivial patch should make the script start more than one sdmem
process again:

diff --git a/config/chroot_local-includes/usr/share/initramfs-tools/hooks/sdmem b/config/chroot_local-includes/usr/share/initramfs-tools/hooks/sdmem
index dc34f86..cd20e71 100755
--- a/config/chroot_local-includes/usr/share/initramfs-tools/hooks/sdmem
+++ b/config/chroot_local-includes/usr/share/initramfs-tools/hooks/sdmem
@@ -21,3 +21,4 @@ esac
copy_exec /sbin/halt
copy_exec /sbin/reboot
copy_exec /usr/bin/sdmem
+copy_exec /usr/bin/seq

No tests done yet, but I can't see how it could make the situation
worse.

--
Ague