Пробую openbsd в chroot

453
averagejoey2000

Я бегу арку Linux. Я хочу попробовать openbsd без перезаписи каких-либо машин и без использования виртуальной машины (я не хочу использовать X11. Интерфейс VirtualBox неуклюж, и я бы предпочел без него). Поэтому следующим логическим выводом будет создание chroot установите в него openBSD и выполните в нем chroot для этого опыта openBSD, но с пространством ядра linux и перезагрузите компьютер. Я обеспокоен безопасностью, поэтому я не хочу выполнять много операций от имени пользователя root, я не хочу хранить неважные файлы.

Я думаю, что я бы создал /mnt/openBSDrsync для зеркала openBSD для ~ / bsd, скомпилировал все и настроил для установки в / mnt / openBSD / [что угодно] Но мне кажется, что я забыл что-то важное. Что я забыл?

1

1 ответ на вопрос

1
chaos

I highly doubt that this would work properly. Since both operating systems use the same binary format (ELF), it should "theoretically" be possible. But in reality they are sharing only a small subset of APIs (POSIX).

A linux executable gets the path of the dynamic linker into the header section (usually something like /lib/ld-linux.so). This is also an executable. The operating system kernel reads this while creating the new process, then loads and executes this other executable binary. In an chroot environment with openbsd there is no such linker, because bsd has it's own linker.

Also bsd has a different system call and library call interface than linux. So linux doen't know bsd syscalls. Interestingly bsd has a compatibility for linux binaries, but not inverse.

Conclusion: If you just want to "try" openbsd, why don't you try a live USB-stick of openbsd?

не знал, что такая вещь существует. Спасибо за внимание. averagejoey2000 9 лет назад 0

Похожие вопросы