LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-12-2017, 05:03 AM   #1
qasimtahir
LQ Newbie
 
Registered: Oct 2017
Posts: 2

Rep: Reputation: Disabled
Package Manager installation for Linux from scratch (LFS)


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
Attached Thumbnails
Click image for larger version

Name:	VirtualBox_nestos-ch 5 completed_12_10_2017_09_58_40.png
Views:	118
Size:	15.7 KB
ID:	26089  

Last edited by qasimtahir; 10-12-2017 at 06:28 AM.
 
Old 10-12-2017, 06:04 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
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.

Last edited by hazel; 10-12-2017 at 06:12 AM. Reason: Possible solution found on second examination
 
Old 10-12-2017, 06:23 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
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.

Last edited by hazel; 10-12-2017 at 06:24 AM.
 
Old 10-12-2017, 10:14 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
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.
 
Old 10-12-2017, 02:13 PM   #5
hendrickxm
Member
 
Registered: Feb 2014
Posts: 344

Rep: Reputation: Disabled
Quote:
Originally Posted by qasimtahir View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS system is unable to boot qasimtahir Linux From Scratch 2 10-13-2017 05:56 AM
LFS error: boot lfs, Kernel panic -not syncing:VFS unable to mount root fs on unknown-block(0,0) XinyuLi Linux From Scratch 4 05-16-2017 01:17 AM
Unable to boot LFS... Help me sathyanext Linux From Scratch 2 03-13-2010 04:21 PM
unable to boot into lfs aahiqmir Linux From Scratch 5 12-05-2009 09:51 PM
unable to boot from lfs 6.2 after kernel compilation pannet1 Linux From Scratch 25 04-05-2007 11:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration