News for hackers. Stuff that matters.
Re:Debian putting everything on the /usr by Sir_Cmpwn on Saturday November 26, 2016 @03:15AM (#13042477)
Most initramfs designs are based on shell scripts and use tools like `mount -t ext4`, cryptsetup, etc - normal userspace tools, tied together by shell scripts. What you're suggesting is actually more special purpose than what we already have. Modern initramfs design is really great and not crufty at all.
Re:Debian putting everything on the /usr by IshKebab on Saturday November 26, 2016 @07:13AM (#13043119)
Wait are you suggesting that something tied together with shell scripts is great?
Re:Debian putting everything on the /usr by Sir_Cmpwn on Saturday November 26, 2016 @07:52AM (#13043259)
Oh yes. Bash is definitely not a good general purpose programming langauge, hell I'd hesitate to even call it a programming language. However, it's very much so the right tool for the job in an initramfs. How familiar are you with the early boot process on a modern Linux distro? Ever had to do it manually from an initramfs rescue shell? Well, if not, it basically just involes invoking a bunch of commands and minimal parsing. Most early boot configs like /etc/fstab are easily readable with awk and are well suited to handling with shell scripts. All you basically have is a stripped down userspace with coreutils plus the commands necessary to prepare the system for the full boot. Shell scripts are the natural choice for tying it all together. I actually really like bash in general, in the niches it's suited for it's very nice.
Re:Debian putting everything on the /usr by JdeBP on Monday November 28, 2016 @11:41AM (#13056529)
> However, it's very much so the right tool for the job in an initramfs.

Do you remember Erik Troan's nash ?

Re:Debian putting everything on the /usr by Sir_Cmpwn on Monday November 28, 2016 @11:47AM (#13056585)
Not flexible enough. Bash is definitely the tool for the job in a _modern_ initramfs.