The previous sed pattern required ^tty1::respawn: but Alpine's LXC inittab has no id field — the line is ::respawn:/sbin/getty 38400 tty1. Match any line containing "getty.*tty1$" instead, and pkill getty after the reload so init respawns with the new command.