Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fstab change
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
bperegrine
n00b
n00b


Joined: 23 Dec 2017
Posts: 37

PostPosted: Sat Mar 10, 2018 1:09 pm    Post subject: Fstab change Reply with quote

Along with the other boot scripts (see https://forums.gentoo.org/viewtopic-t-1077378.html), I also want to include a script that tells fstab to list all my devices under /mnt/ with their UUID (rather than their device file).

Is there a command that allows to do this, or is there a line I can add to /etc/fstab that would do this ?

I read https://wiki.gentoo.org/wiki/Fstab and https://wiki.gentoo.org/wiki/Removable_media#UUIDs_and_labels
but neither has the answers I seek.


Last edited by bperegrine on Mon Mar 12, 2018 7:44 am; edited 1 time in total
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Sat Mar 10, 2018 2:45 pm    Post subject: Reply with quote

Are you looking for something like this?
Code:
lsblk -o uuid
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Mar 10, 2018 3:25 pm    Post subject: Re: Fstab change Reply with quote

bperegrine wrote:
Is there a command that allows to do this, or is there a line I can add to /etc/fstab that would do this ?
No to both, but this can be done with a custom UDEV rule. Unfortunately the documentation on UDEV rule creation is very sporadic. My one foray into mount point rename is
chronicled here, but since I only did it that once, I'm afraid I can't help too much.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
bperegrine
n00b
n00b


Joined: 23 Dec 2017
Posts: 37

PostPosted: Mon Mar 12, 2018 8:13 am    Post subject: Reply with quote

As I understand, fstab uses eudev, not udev.
So if I use udev instead, Autofs ( https://wiki.gentoo.org/wiki/AutoFS ) won't work any more ?
The only alternative I found for autofs are a few scripts for mdev (https://wiki.gentoo.org/wiki/Mdev/Automount_USB ) which I prefer not to use either.

If setting up the system to automatically show the uuid instead isn't possible, then are there any other ways on how I can customize things more ? I'm thinking of either adding labels automatically or changing the device names, or making symlinks.
See https://wiki.gentoo.org/wiki/Device_file
http://swift.siphos.be/linux_sea/hardwaremanagement.html#idm3548298893536

I assume I'll need to make udev rules, and so will need to make .rules files which need to be copied upon boot from my usb stick to /etc/udev/rules.d/ and which are then read by the machine.
See https://unix.stackexchange.com/questions/333697/etc-udev-rules-d-vs-lib-udev-rules-d-which-to-use-and-why
However, to make these rules I need to know how gentoo makes the standard names for the devices (ie does it detect the computer port on which the device is connected, or does it categorise the devices some other way (optical drives, ... ?)
Also, can someone list the contents of /lib/udev/rules.d/ here so they can be examined (I'm not working on gentoo yet) ?

In regards to the device names: if these can be altered easily, will I need to make changes on other programs too (like autofs ?) and if so, how do I do this ?


Last edited by bperegrine on Mon Mar 12, 2018 3:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Mar 12, 2018 11:41 am    Post subject: Reply with quote

Both udev and eudev run the rules identically by design. (I use eudev too.) eudev was forked from udev based on the concern that it would become impossible to build udev independent of systemd one day, not to significantly alter its behavior.

bperegrine wrote:
... However, to make these rules I need to know how gentoo makes the standard names for the devices (ie does it detect the computer port on which the device is connected, or does it categorise the devices some other way (optical drives, ... ?)
Also, can someone list the contents of /lib/udev/rules.d/ here so they can be examined (I'm not working on gentoo yet) ?
Gentoo's behavior is "out of the box" here. What you need to learn is how Linux does these things. Also, it's an endless task to provide you with pieces of a working Gentoo installation for you to examine. You need to go ahead and make your own, even if it isn't your final dream installation, so you can start poking around. It's part of the fun. ;)

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3335
Location: Rasi, Finland

PostPosted: Mon Mar 12, 2018 1:21 pm    Post subject: Re: Fstab change Reply with quote

bperegrine wrote:
I also want to include a script that tells fstab to list all my devices under /mnt/ with their UUID (rather than their device file).

Is there a command that allows to do this, or is there a line I can add to /etc/fstab that would do this ?

fstab is only a very simple configuration file, not a scriptable configuration file. fstab is also meant to be static on normal installations.

You could have a script which generates fstab for you and mounts all the partitions under /mnt with their UUID in the mount point (directory) name. I would NOT recommend this.
Instead udev rules is the "correct" way. Normally udev creates symlinks under /dev/disk. Just see what there is... Check if that's all you happen to need?
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
bperegrine
n00b
n00b


Joined: 23 Dec 2017
Posts: 37

PostPosted: Sun Mar 18, 2018 9:35 am    Post subject: Reply with quote

I've started to read up on how udev works (https://www.linux.com/news/udev-introduction-device-management-modern-linux-system ), but here are a few more questions that arose from that:

I read that a "cdrom" and "dvd" symlink is automatically created (https://wiki.gentoo.org/wiki/Device_file#Symlinks ); however /etc/udev/rules.d/ is empty, so which file specifies the creation of these symlinks ? and how do I change or remove these symlinks (the proper way) ?

---

I understand that it indeed looks at the computer port (see http://www.linuxfromscratch.org/lfs/view/6.3/chapter07/symlinks.html ; ata_id, scsi_id, ... ) and also attains additional data from the device (http://hintshop.ludvig.co.nz/show/persistent-names-usb-serial-devices/ ;Vendor ID Product ID) but how does it determine what's an optical drive (sr0) and what's a disk (https://wiki.gentoo.org/wiki/Removable_media ) ? (since both harddisks and optical drives can have the same computer port -ie IDE-cable, USB-cable, serial ata-cable) ?

---

If I make symlinks, then I assume I'll get more devices listed in /dev/ (which will make things more confusing). Is there a way to stop standard drivenames (not symlinks) from showing up (so hiding them, as deleting them will break the symlinks too I guess). Or can I just add a line in a .start file to delete the standard drivenames upon boot ?
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sun Mar 18, 2018 12:09 pm    Post subject: Reply with quote

bperegrine wrote:
I read that a "cdrom" and "dvd" symlink is automatically created (https://wiki.gentoo.org/wiki/Device_file#Symlinks ); however /etc/udev/rules.d/ is empty, so which file specifies the creation of these symlinks ? and how do I change or remove these symlinks (the proper way) ?

/lib/udev/rules.d/60-cdrom_id.rules

bperegrine wrote:
I understand that it indeed looks at the computer port (see http://www.linuxfromscratch.org/lfs/view/6.3/chapter07/symlinks.html ; ata_id, scsi_id, ... ) and also attains additional data from the device (http://hintshop.ludvig.co.nz/show/persistent-names-usb-serial-devices/ ;Vendor ID Product ID) but how does it determine what's an optical drive (sr0) and what's a disk (https://wiki.gentoo.org/wiki/Removable_media ) ? (since both harddisks and optical drives can have the same computer port -ie IDE-cable, USB-cable, serial ata-cable) ?

You can query the device to see what informations udev gave you, then pickup that information to filter properly the device you aim to change.
Code:
>udevadm info -qall /dev/sr0
P: /devices/pci0000:00/0000:00:1f.2/ata4/host4/target4:0:0/4:0:0:0/block/sr0
N: sr0
L: -100
S: cdrom
S: disk/by-id/ata-TSSTcorp_CDDVDW_SH-S223F
E: DEVNAME=/dev/sr0
E: ID_CDROM=1
E: ID_MODEL=TSSTcorp_CDDVDW_SH-S223F
...

So you can use a rule that aim at ENV{ID_CDROM}="1" to get cdrom only, ENV{ID_MODEL}="TSSTcorp_CDDVDW_SH-S223F" to only apply that rule on that cdrom, or as basic as it is ENV{DEVNAME}="/dev/sr0" because kernel do name cdroms sr* while disks are name sd* (so it should be safe to use /dev/sr0 because sr = cdrom and 0 = first one seen by kernel, which should be case for most users who only have one).

And you can test if your rule is properly apply with
Code:
>udevadm test /devices/pci0000:00/0000:00:1f.2/ata4/host4/target4:0:0/4:0:0:0/block/sr0
calling: test
...
Back to top
View user's profile Send private message
bperegrine
n00b
n00b


Joined: 23 Dec 2017
Posts: 37

PostPosted: Sun Mar 18, 2018 4:41 pm    Post subject: Reply with quote

At https://www.linux.com/news/udev-introduction-device-management-modern-linux-system I also noticed that serial ATA drives aren't differentiated from parallel ATA drives (both have their partitions given sdaX names).

Couldn't this be solved by making symlinks in dev/disk of all devices with "by-id's" beginning "scsi-SATA"+number 1-9
And if so, how ? Also, with what do the "by-id's" of the parallel ATA's start, and can these be renamed in a similar way ?

USB and firewire devices get different numbers in their names in between bootups due to operating in "by path" mode. Can this be changed to operate in "by-id" mode, without breaking anything ? If so, how ?

How are the USB and firewire drives called, regardless of the mode they use ? Are these names like "ttyUSB1", ... ? (see http://hintshop.ludvig.co.nz/show/persistent-names-usb-serial-devices/ ) If these are indeed the correct names, can't I just rename the symlinks (using a .start script) to USB+number ?

Next, since dev/sr0 and other sr's are located at /dev/disk/, there's actually no differentiation at all between "opticals" and "disks". So to do a differentiation, I was thinking to use a .start script to:
* move sr0 and other sr's (so all opticals) to a new folder called /dev/optical/
* update the /dev/cdrom and the /dev/dvd symlinks to point to the new location (/dev/optical/sr0)
* make the /dev/cdrom and the /dev/dvd symlinks invisisible in pcmanfm (so only the sr's in /dev/optical/ are visible in pcmanfm)

How do I do the above ?
Are additional changes needed (fstab changes); ie are there already mountpoints for these altered files, and if so, what are they, standardly ? Note that I'll use autoFS btw.

Update: I overlooked one other important issue: are all sdX's placed in /dev/disk/ standardly ? Or are they at /dev/ and is the /dev/disk/ folder empty ? In case the folder is empty, I could just add in a line to delete the folder instead, and just keep the srX's and sdX's in /dev/. It just needs to be coherent; ie if there's a /disk/ folder, there should also be a /optical/ folder, or otherwise, none should exist.


Last edited by bperegrine on Mon Mar 19, 2018 1:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Mar 18, 2018 6:01 pm    Post subject: Reply with quote

bperegrine wrote:
At https://www.linux.com/news/udev-introduction-device-management-modern-linux-system I also noticed that serial ATA drives aren't differentiated from parallel ATA drives (both have their partitions given sdaX names).

Couldn't this be solved by making symlinks in dev/disk of all devices with "by-id's" beginning "scsi-SATA"+number 1-9[?]
Yes, but it's not obvious to me that it needs to be solved. What capability are you trying to create here?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
bperegrine
n00b
n00b


Joined: 23 Dec 2017
Posts: 37

PostPosted: Mon Mar 19, 2018 1:23 pm    Post subject: Reply with quote

John R. Graham wrote:

Yes, but it's not obvious to me that it needs to be solved. What capability are you trying to create here?


You probably read the site mentioned earlier: http://hintshop.ludvig.co.nz/show/persistent-names-usb-serial-devices/
It has a paragraph that sums up the issues I have with the current setup:

"Sadly the device names are not persistent — whether the BusPirate pops up as /dev/ttyUSB0 or /dev/ttyUSB2 depends on the order in which are the devices discovered by the kernel. That makes things difficult — it usually requires a trial and error approach to find out what the hell is the ARM board’s tty name this time."

The site just referred to the inpersistence with USB devices, but given that there are so many similiarly-named devices (sdX's -composed of serial and parallel ata's-), it's also a hassle to try to find the correct sdX you're searching for. If a good part of the sdX devices get a different name, there's less searching involved. Using the ports, that's easily doable and will work in practice as everyone knows the type of devices he has on his machine. The division into "opticals" and "disks" could further improve things, although it's perhaps not essential.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Mar 19, 2018 2:26 pm    Post subject: Reply with quote

Okay that makes sense, but for mass storage, mounting by UUID solves the problem and is already supported. No need to reinvent that particular wheel. In my defense, that's what your original post was asking about. Did you get around to installing Gentoo yet? Do you intend to?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Mon Mar 19, 2018 2:39 pm    Post subject: Reply with quote

I could understand if your issue was like this user https://forums.gentoo.org/viewtopic-t-1072550.html but really, just for disk.
Just gives them a label and problem solve, you don't even need to figure out their UUID or any cryptic numbers, just look at /dev/disk/by-label to identify the wanted disk.
Back to top
View user's profile Send private message
bperegrine
n00b
n00b


Joined: 23 Dec 2017
Posts: 37

PostPosted: Mon Mar 19, 2018 3:00 pm    Post subject: Reply with quote

John R. Graham wrote:
Okay that makes sense, but for mass storage, mounting by UUID solves the problem and is already supported. No need to reinvent that particular wheel. In my defense, that's what your original post was asking about. Did you get around to installing Gentoo yet? Do you intend to?


No I don't have gentoo yet and yes I intent to get it. However it's taking a while since I want to start off with a customized gentoo livecd. The main reason is that there are no live cd's -not install cd's- available (only live dvd's), and I don't have a dvd reader.

Yes, using a UUID or a label can be useful, if you use the command line. However, in pcmanfm, it doesn't make things any easier.

Update: looks like I can hide the /dev/cdrom and /dev/dvd device files by making a .hidden file. Not sure whether it works on files too, or just on folder though (https://github.com/lxde/lxqt/issues/1323 , https://askubuntu.com/questions/909113/how-to-hide-files-and-folders-in-pcmanfm-without-changing-their-path )
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Mar 19, 2018 3:52 pm    Post subject: Reply with quote

bperegrine wrote:
No I don't have gentoo yet and yes I intent to get it. However it's taking a while since I want to start off with a customized gentoo livecd. The main reason is that there are no live cd's -not install cd's- available (only live dvd's), and I don't have a dvd reader.
You appear to be planning to work way too hard. :wink: Just use the SystemRescueCD. It's Gentoo-based, it's live enough (meaning it contains X, a desktop environment, Firefox, GParted, et cetera), and it fits on a CD. It's perfect for a Gentoo install. In addition, you can SSH into the running SystemRescueCD from a full up Linux GUI if you like. (This works on the Minimal Install CD too.)

What does a custom LiveCD get you that this doesn't?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
bperegrine
n00b
n00b


Joined: 23 Dec 2017
Posts: 37

PostPosted: Tue Mar 20, 2018 5:33 pm    Post subject: Reply with quote

John R. Graham wrote:

What does a custom LiveCD get you that this doesn't?

I don't like the packages on that cd (it's way too slow, due to xfce, ...) and I really want something suitable for me for once (rather than keep messing around with cd's filled with packages I don't want).

Anyway, take a look at

https://github.com/Sharrisii/TAZ_optional_usb_stick/blob/master/bootscripts/change_device_names.sh

https://github.com/Sharrisii/TAZ_optional_usb_stick/blob/master/device_names_files/harddisk_labelling.rule

https://github.com/Sharrisii/TAZ_optional_usb_stick/blob/master/device_names_files/notes.txt

The first one is the main script, the second is the rule that still needs to be written, but contains the layout of what needs to be in it, and the last is just a readme. For the readme, just the command specified for lookups needs to be corrected (ls -lR /dev/ | cat "by-label" ). I btw assume that USB harddisks are also given a sd* name, so included that too in the rule.

Let me know how to make the rule, and change the command in the readme.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Tue Mar 20, 2018 6:16 pm    Post subject: Reply with quote

bperegrine wrote:
and I really want something suitable for me for once (rather than keep messing around with cd's filled with packages I don't want)

gentoo livecd are not mean to be useful to use for an everyday job, they are just mean to gives an eye at gentoo and install it.
If you're looking for a livecd that is meant to be day to day use, try knoppix or some more specialized livecd about security or whatever.

You're critic over lxde speed or usefulness are irrelevant because your gentoo will not have it if you don't like it. Or probably more a misconception of what gentoo is by thinking a livecd is gentoo.
You don't even need any gentoo livecd to install a gentoo ; any livecd from any linux distro is ok to do that ; to install a gentoo you need some basic gnu tools that 99.9999999999% linux livecd will have.
So there's 0 unwanted or useless package coming from any livecd that would endup in your gentoo.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Mar 20, 2018 6:38 pm    Post subject: Reply with quote

Besides, you know that you will need a running Gentoo system to build your custom Gentoo LiveCD, right? It should be obvious that you can't have the custom LiveCD available to get this running Gentoo system. So what do you intend to use? And what are you waiting for?

Anyway, krinn is right. I hardly ever touch the LiveCD except for occasional troubleshooting. In fact, I hardly ever install Gentoo because it's a rolling distribution. I'm currently typing on a Gentoo installation that was originally created in 2004:
Code:
# head /var/log/emerge.log | awk -f ~/scripts/interp.awk
02/18/04 17:18:00: Started emerge on: Feb 18, 2004 22:18:00
02/18/04 17:18:00:  *** emerge --oneshot --nodeps ccache
02/18/04 17:18:00:  >>> emerge (1 of 1) dev-util/ccache-2.3 to /
So, yeah. Planning on working too hard.

Finally, it's essentially impossible—and totally unnecessary—to completely prepare for a Gentoo install on paper. You'll never get there unless you get your feet wet. Start here.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
bperegrine
n00b
n00b


Joined: 23 Dec 2017
Posts: 37

PostPosted: Wed Mar 21, 2018 2:51 pm    Post subject: Reply with quote

krinn wrote:
gentoo livecd are not mean to be useful to use for an everyday job, they are just mean to gives an eye at gentoo and install it. If you're looking for a livecd that is meant to be day to day use, try knoppix or some more specialized livecd about security or whatever.


That's just it, I don't want to install it. I want it live.

John R. Graham wrote:
Besides, you know that you will need a running Gentoo system to build your custom Gentoo LiveCD, right? It should be obvious that you can't have the custom LiveCD available to get this running Gentoo system. So what do you intend to use?

Nothing at all. I'm going to let someone else make it for me ;)
I'm just working on the special functions, which are executed from a USB stick.
Might still take a while, but that's ok, I've been trying to move to linux for almost a decade (never been able to so far, mainly because none of the livecd's are ever exactly what I want).
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Wed Mar 21, 2018 4:12 pm    Post subject: Reply with quote

then http://www.knopper.net/knoppix/index-en.html would better fit your needs, because linux is not a livecd :)
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Mar 21, 2018 5:51 pm    Post subject: Reply with quote

I somewhat agree with krinn. Let me point out that your planned approach is suboptimal in several ways:
  1. LiveCDs are slow because CDs are slow. They also spin down frequently, which exacerbates their speed problem. Consider instead acquiring a USB hard drive and installing Gentoo there.
  2. LiveCDs are not updatable, but only replaceable. On average, I install new software a few times per week, but you won't be able to. This is, in fact, one of Gentoo's strengths: the ease of adding new (and tweaking existing) software.
  3. LiveCDs won't store your work. Since you need some re-writeable persistent storage anyway, why not make your vision simpler and install Gentoo on a removable hard drive?
- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
bperegrine
n00b
n00b


Joined: 23 Dec 2017
Posts: 37

PostPosted: Thu Mar 22, 2018 11:31 am    Post subject: Reply with quote

John R. Graham wrote:
I somewhat agree with krinn. Let me point out that your planned approach is suboptimal in several ways:
  1. LiveCDs are slow because CDs are slow. They also spin down frequently, which exacerbates their speed problem. Consider instead acquiring a USB hard drive and installing Gentoo there.
  2. LiveCDs are not updatable, but only replaceable. On average, I install new software a few times per week, but you won't be able to. This is, in fact, one of Gentoo's strengths: the ease of adding new (and tweaking existing) software.
  3. LiveCDs won't store your work. Since you need some re-writeable persistent storage anyway, why not make your vision simpler and install Gentoo on a removable hard drive?
- John


Regarding
1: Yes during bootup, files need to be read from cd, however, I'll be writing it to a tmpfs in ram, so during use, it won't be slow at all, rather very fast

2: True, it'll need to be changed once every year or so.

3: I have persistent storage: a usb stick. I'll need to be used anyway for the modifications I made, so it can also be used to store user-made documents, ...
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3335
Location: Rasi, Finland

PostPosted: Thu Mar 22, 2018 12:54 pm    Post subject: Reply with quote

You're losing all the benefits of Gentoo there.

bperegrine wrote:
3: I have persistent storage: a usb stick. I'll need to be used anyway for the modifications I made, so it can also be used to store user-made documents, ...


You're better off with some distro meant for LiveCD usage. I'd recommend Tiny Core Linux if you want lightweight.
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
bperegrine
n00b
n00b


Joined: 23 Dec 2017
Posts: 37

PostPosted: Thu Mar 22, 2018 3:57 pm    Post subject: Reply with quote

The change has been finished, see
https://github.com/Sharrisii/TAZ_optional_usb_stick/blob/master/bootscripts/change_device_names.sh

In regards to the distro packages:
I got a list over at https://github.com/Sharrisii/TAZ/blob/master/TAZ_x86_v1_specs/package_list_TAZ.txt
The list isn't complete (no dependencies added), but I assume gentoo will add the dependencies automatically -using catalyst, or using the packages_install script here below- ?

I also made a "packages_install.sh script" ( https://github.com/Sharrisii/TAZ/blob/master/TAZ_x86_v1_specs/packages_install.sh ), the idea is to run this in between building the different catalyst stages (the idea is to start from scratch, so to make all 3 spec files, without a portage snapshot (as not needed when building from scratch).
The question I have however is: can such a packages_install.sh script be used at all ?

Another question is: does it need to install all packages (since I'll use many "boot options" ? By "boot options", I mean several squashfs archives in which the first one is the "core programs" squashfs, and additional boot options add more programs to this first squashfs (for instance boot option 2 adds program A and B to core programs, boot option 3 adds programs C and D (so NOT A + B + C + D).
If the packages_install script does not need to install all programs at once (after which the programs listed is pulled apart over several squashfs archives), do I need to install all packages for the core programs, and then immediately separate off the additional programs for the other boot options ? But how can these be separated off then if they can't be installed first ?
As said, I'm not going to do it myself, but it would help to know so that I can change the packages_install.sh script accordingly.

Re Tiny Core Linux: I know of that but I want an upstream distribution that actually has a large userbase and is updated often. I still want to update the live cd every year or so. Also, gentoo is closer to my preferences (tiny core is almost "unworkably" light, it still needs to be practical for everyday use.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum