Re:Writing kernels that boot with Qemu and Grub – a tutorial
by lahdekorpi on Friday July 29, 2016 @03:01AM
(#12185373)
How is booting from a CD not being "root"?
Re:Writing kernels that boot with Qemu and Grub – a tutorial
by pjc50 on Friday July 29, 2016 @04:31AM
(#12185602)
Booting from a CD is outside the OS permissions system. The parent poster is talking about making the CD image.
Re:Writing kernels that boot with Qemu and Grub – a tutorial
by therein on Friday July 29, 2016 @05:35AM
(#12185763)
Why should creating an ISO need root? It shouldn't be any different than creating a tarball or a zip file.
Re:Writing kernels that boot with Qemu and Grub – a tutorial
by deathanatos on Friday July 29, 2016 @05:58PM
(#12190352)
As pjc50 notes, it shouldn't; absolutely nothing about creating either ISOs or hard disk images requires root, in theory — it's just a file, after all. But in practice, tools like losetup and mount both require it. The part I found novel in the article was the mtools package, which I didn't know about.
Linux has made progress here, such as FUSE for mounting in user space. But FUSE doesn't support file systems that the OS inherently supports, for example. My understanding is that you need to write a FUSE driver for, e.g., ext2, even though Linux is perfectly capable of mounting ext2 as root.
Block devices and partition tables present another hassle.
I suspect ISOs are more easily done simply because non-root users have more need to create them: UI applications for making ISOs readily exist, but I can't think of any common applications that deal with disk images that don't already have root.
Re:Writing kernels that boot with Qemu and Grub – a tutorial
by pjc50 on Friday July 29, 2016 @05:36AM
(#12185765)
It shouldn't. However, many of the tools assume the ability to e.g. mount filesystem images as part of the process. Which does require root.
Re:Writing kernels that boot with Qemu and Grub – a tutorial
by ChristianBundy on Friday July 29, 2016 @04:19AM
(#12185575)
Exactly. Physical access is root access.
[1]: http://os.phil-opp.com/multiboot-kernel.html