custom CD not working for 22.04.3

Colin Law clanlaw at gmail.com
Tue Nov 28 16:19:00 UTC 2023


On Tue, 28 Nov 2023 at 16:12, Jerry Geis <jerry.geis at gmail.com> wrote:
>
>  python3 -m livefs_edit ubuntu-22.04.3-live-server-amd64.iso test.iso --cp grub.cfg  /boot/grub/grub.cfg
> running cp with arguments {'source': 'grub.cfg', 'dest': '/boot/grub/grub.cfg'}
> Traceback (most recent call last):
>   File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
>     return _run_code(code, main_globals, None,
>   File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
>     exec(code, run_globals)
>   File "/usr/local/lib/python3.10/dist-packages/livefs_edit/__main__.py", line 75, in <module>
>     main(sys.argv[1:])
>   File "/usr/local/lib/python3.10/dist-packages/livefs_edit/__main__.py", line 66, in main
>     func(ctxt, **kw)
>   File "/usr/local/lib/python3.10/dist-packages/livefs_edit/actions.py", line 105, in cp
>     shutil.copy(ctxt.p(source), ctxt.p(dest))
>   File "/usr/lib/python3.10/shutil.py", line 417, in copy
>     copyfile(src, dst, follow_symlinks=follow_symlinks)
>   File "/usr/lib/python3.10/shutil.py", line 254, in copyfile
>     with open(src, 'rb') as fsrc:
> FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmptffibk85/grub.cfg'
>
> removed the extra / and still nothing. Thanks

That is a much more informative error message though.  Perhaps it will
mean something to someone.

Colin L



More information about the ubuntu-users mailing list