LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Package Manager installation for Linux from scratch (LFS) (https://www.linuxquestions.org/questions/linux-from-scratch-13/package-manager-installation-for-linux-from-scratch-lfs-4175615516/)

qasimtahir 10-12-2017 05:03 AM

Package Manager installation for Linux from scratch (LFS)
 
1 Attachment(s)
I want to build my own linux based distro based on LFS and in which I want to install package manager for updating my packages.

I have used below mentioned hint as a reference
Installing and using pacman as a package manager for LFS http://lists.linuxfromscratch.org/pi...ch/003304.html

To achieve this i have followed below path.

1. I have followed LFS book and completed till chapter 6.7.
2. After that i have installed dpkg package from source and then from onward installed each package by using its .deb package form debian.org (as per LFS book 8.0)
3. On completing chapter 6 i have followed book for remaining chapters and completed the book

When i try to boot this system. It was unable to boot and throwing error as shown in attachment

So my queries are,

1. Am i following the correct path for installing debian based package manager?
2. How to solve this error in order to get my system to boot without any error?

Any help in this regard is much appreciated.

Thanks

hazel 10-12-2017 06:04 AM

It has actually booted. The problem is that you don't seem to have a console for your shell. Are you sure you created the following files in /dev?
mknod -m 600 $LFS/dev/console c 5 1
mknod -m 666 $LFS/dev/null c 1 3

Do you have a correct inittab file with tty's set up for each level? I assume you are using init.

Oops! I just checked your print-out again, and I can see the original error: init didn't actually start. I don't know why, but that's what's causing the problem.

hazel 10-12-2017 06:23 AM

On second thoughts, I think I do see the problem. The relevant message says "/etc/init exists but couldn't execute it".

Now all modern Linuxes have the init program in /sbin, not in /etc. The kernel only looks there as a last resort. And it found something there that it couldn't execute, probably your inittab file, which you called "init" by mistake. You don't seem to have installed sysvinit properly. Check in /sbin. You should find init, shutdown, halt and reboot in there.

rtmistler 10-12-2017 10:14 AM

Thread has been moved to the Linux from Scratch forum.

Meanwhile there is a duplicate in the LFS forum which either should be closed or merged with this one.

https://www.linuxquestions.org/quest...ot-4175615515/

Please post your thread in only a single forum. Cross posting will only cause confusion with your question.

hendrickxm 10-12-2017 02:13 PM

Quote:

Originally Posted by qasimtahir (Post 5769058)
2. After that i have installed dpkg package from source and then from onward installed each package by using its .deb package form debian.org (as per LFS book 8.0)

Thanks

You won't get a working system when you only add the packages from debian. If you want a minimal debian-system, bootstrap debian or use the minimal install cd but installing it the way you did will not get you a working system.


All times are GMT -5. The time now is 08:23 AM.