Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I would like to have complete installation of Slackware 14.1 for chrooting purposes in one folder, /mnt/chroot-folder.
Problem is that only way I can see this can be done is by reinstalling Slackware into empty partition and 'cp -r' everything into that folder.
Also, why are these installers necessary? As far as I know linux is just obviously pile of files which are copied into destination partition during installation process. Why there is no standard slackware14.1-amd64.tar what you can just extract into desired partition/folder and instruct bootloader to boot from that partition and after booting up you can run standard 'firstrun-init.sh' to initialize all stuff you would init during install?
Only thing I can think isn't so good about this way of installing is that you can't select packages and you have to manually remove them.
Of course you will have to adapt that to your needs, for example replacing slackware64 with slackware if you install 32 bit and possibly using not all of the sets, like not having KDE in the chroot.
On Debian you would use debootstrap instead to install a minimal system from where you can build up the chroot using apt-get/aptitude.
I am pretty sure that similar techniques exist for RPM based distros, but that is beyond my knowledge.
Also, why are these installers necessary? As far as I know linux is just obviously pile of files which are copied into destination partition during installation process. Why there is no standard slackware14.1-amd64.tar what you can just extract into desired partition/folder and instruct bootloader to boot from that partition and after booting up you can run standard 'firstrun-init.sh' to initialize all stuff you would init during install?
(snip)
Because Linux installation is not just copying files from point A to point B. Though you don't need an installer per se for a Linux distribution, the installation of packages (Which is how most Linux distributions set up the files: Via the package manager.) is a major step. But you have a whole mess of things before and after this file copying is done for the system to actually work.
Generally there's preparing the disk, making sure the partitions are set up in a way resembling the final system, the system installing the packages via package manager, the system configuring those packages, configuring itself for the hardware/firmware it found on your system, then taking steps for the user to configure things only the user can know, such as the root password, whether the bootloader should be installed, time zone, etc. During one of these steps the system configures the fstab.
As you can see, copying files as the only install step just isn't sufficient to get a working Linux install. It wouldn't even boot and the system wouldn't even necessary show any signs it's THERE during bootup without configuration and other stages beyond simply copying files.
Because Linux installation is not just copying files from point A to point B. Though you don't need an installer per se for a Linux distribution, the installation of packages (Which is how most Linux distributions set up the files: Via the package manager.) is a major step. But you have a whole mess of things before and after this file copying is done for the system to actually work.
Generally there's preparing the disk, making sure the partitions are set up in a way resembling the final system, the system installing the packages via package manager, the system configuring those packages, configuring itself for the hardware/firmware it found on your system, then taking steps for the user to configure things only the user can know, such as the root password, whether the bootloader should be installed, time zone, etc. During one of these steps the system configures the fstab.
As you can see, copying files as the only install step just isn't sufficient to get a working Linux install. It wouldn't even boot and the system wouldn't even necessary show any signs it's THERE during bootup without configuration and other stages beyond simply copying files.
For a chroot most of these steps can be omitted. I use installpkg (and have use debootstrap) for chroots for quite some time, works fine.
For a chroot most of these steps can be omitted. I use installpkg (and have use debootstrap) for chroots for quite some time, works fine.
I don't see how a chroot makes it so you don't configure/partition your system. Those steps are still necessary. An actual installer isn't needed, but I'm addressing the assertion that installing Linux is just copying files when there's partitioning/configuration that has to be done before it can even boot. Chroot doesn't omit that.
I don't see how a chroot makes it so you don't configure/partition your system. Those steps are still necessary. An actual installer isn't needed, but I'm addressing the assertion that installing Linux is just copying files when there's partitioning/configuration that has to be done before it can even boot. Chroot doesn't omit that.
For a chroot you don't need a separate partition, so that step can be omitted. Configuration of the installed chroot can usually be done pretty easy by copying over configuration files from the host system or just run the inbuilt configuration tools. Of course an installed chroot does need some configuration, for example to provide network access, but many steps can simply be omitted, for example creating an fstab file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.