new /etc/shells is instead at /usr/etc/shells; old /etc/shells is kept

/etc/shells isn't updated when akshara runs, instead it's being put at /usr/etc/shells on account of this line in akshara.hook:
mv /new_root/.update_rootfs/etc /new_root/usr/etc
mv /new_root/.update_rootfs/etc /new_root/usr/etc
I'm rather confused as to what the point of this line was, can someone explain please?
3 Replies
πŸŽ„ Asterisk
πŸŽ„ Asteriskβ€’3mo ago
@Rudra tbf im confused too updated tags as this isn't really a bug
Rudra
Rudraβ€’3mo ago
ah yep, essentially it just copies the original, shipped version of /etc to /usr for future updates, such that it can merge a future update with any modifications you made after the previous update the code isn't very intuitive, I should probably explain the entire process elsewhere
hanna (password generator)
hey so i'm an idiot, but i've been looking into this a bit more and found another like (this time in akshara) which seems related and confuses me:
exec('cp', '-ax', '/.update_rootfs/etc', '/.update_rootfs/usr/etc')
exec('cp', '-ax', '/.update_rootfs/etc', '/.update_rootfs/usr/etc')
afaict this just moves any updates for /etc/ to /usr/etc/ and i'm not exactly sure where to go from that
Want results from more Discord servers?
Add your server