Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse-srtm-pcrs generates invalid json #4

Open
gaetan-sbt opened this issue Sep 25, 2024 · 0 comments
Open

parse-srtm-pcrs generates invalid json #4

gaetan-sbt opened this issue Sep 25, 2024 · 0 comments

Comments

@gaetan-sbt
Copy link

Strings aren't escaped when generating the json, so I'm getting an invalid json when serializing:

grub_cmd: menuentry Ubuntu --class ubuntu --class gnu-linux --class gnu --class os --id gnulinux-simple-43079483-19f2-4c67-b58f-025306f149f4 { recordfail load_video gfxmode $linux_gfx_mode insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod ext2 search --no-floppy --fs-uuid --set=root 178d3047-3112-4702-9ffb-cdeb5960493e if [ "${initrdfail}" = 1 ]; then echo 'GRUB_FORCE_PARTUUID set, initrdless boot failed. Attempting with initrd.' linux /vmlinuz-6.8.0-1014-gcp root=PARTUUID=b863f10f-3529-49f7-87fb-8e70a52c514a ro console=ttyS0,115200 initrd /initrd.img-6.8.0-1014-gcp else echo 'GRUB_FORCE_PARTUUID set, attempting initrdless boot.' linux /vmlinuz-6.8.0-1014-gcp root=PARTUUID=b863f10f-3529-49f7-87fb-8e70a52c514a ro console=ttyS0,115200 panic=-1 fi initrdfail}

I am getting this which is invalid JSON:

"description":"grub_cmd: menuentry Ubuntu --class ubuntu --class gnu-linux --class gnu --class os --id gnulinux-simple-43079483-19f2-4c67-b58f-025306f149f4 { recordfail load_video gfxmode $linux_gfx_mode insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_gpt insmod ext2 search --no-floppy --fs-uuid --set=root 178d3047-3112-4702-9ffb-cdeb5960493e if [ "${initrdfail}" = 1 ]; then echo 'GRUB_FORCE_PARTUUID set, initrdless boot failed. Attempting with initrd.' linux /vmlinuz-6.8.0-1014-gcp root=PARTUUID=b863f10f-3529-49f7-87fb-8e70a52c514a ro console=ttyS0,115200 initrd /initrd.img-6.8.0-1014-gcp else echo 'GRUB_FORCE_PARTUUID set, attempting initrdless boot.' linux /vmlinuz-6.8.0-1014-gcp root=PARTUUID=b863f10f-3529-49f7-87fb-8e70a52c514a ro console=ttyS0,115200 panic=-1 fi initrdfail}" 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant