Changeset View
Changeset View
Standalone View
Standalone View
actions.py
| Show All 25 Lines | def install(): | ||||
| do_chmod("/sys", 0755) | do_chmod("/sys", 0755) | ||||
| do_chmod("/home", 0755) | do_chmod("/home", 0755) | ||||
| do_chmod("/run", 0755) | do_chmod("/run", 0755) | ||||
| do_chmod("/media", 0755) | do_chmod("/media", 0755) | ||||
| pisitools.dosym("../run", "/var/run") | pisitools.dosym("../run", "/var/run") | ||||
| pisitools.dosym("../run/lock", "/var/lock") | pisitools.dosym("../run/lock", "/var/lock") | ||||
| pisitools.dosym("lib64", "/lib") | pisitools.dosym("lib64", "/lib") | ||||
| pisitools.dosym("lib64", "/usr/lib") | pisitools.dosym("lib64", "/usr/lib") | ||||
| pisitools.dosym("/usr/share/defaults/etc/xprofile", "/etc/xprofile") | |||||
JoshStrobl: Nonono. We should not be symlinking this, it should only ever be created by the user per… | |||||
xulongwu4AuthorUnsubmitted Done Inline Actions@JoshStrobl I remember the reason I did this symlink here now. This was initially @ermo's suggestion and I also think it is a good idea. This is necessary to ensure consistent behaviors among lightdm, sddm and gdm. sddm and gdm looks for /etc/xprofile by default. I tried to make lightdm source /etc/xprofile in D8984. If we don't add this symlink and modify D8984 accordingly, we will only have lightdm source the system xprofile. gdm and sddm won't source that unless a patch is created for that purpose. xulongwu4: @JoshStrobl I remember the reason I did this symlink here now. This was initially @ermo's… | |||||
| pisitools.dosym("/proc/self/mounts", "/etc/mtab") | pisitools.dosym("/proc/self/mounts", "/etc/mtab") | ||||
| # Write out a default .profile.. temporary | # Write out a default .profile.. temporary | ||||
| shelltools.echo("%s/etc/skel/.profile" % get.installDIR(), "source /usr/share/defaults/etc/profile") | shelltools.echo("%s/etc/skel/.profile" % get.installDIR(), "source /usr/share/defaults/etc/profile") | ||||
| shelltools.echo("%s/etc/skel/.bashrc" % get.installDIR(), "source /usr/share/defaults/etc/profile") | shelltools.echo("%s/etc/skel/.bashrc" % get.installDIR(), "source /usr/share/defaults/etc/profile") | ||||
| shelltools.echo("%s/etc/nsswitch.conf" % get.installDIR(), "hosts: files dns") | shelltools.echo("%s/etc/nsswitch.conf" % get.installDIR(), "hosts: files dns") | ||||
| # Remove legacy boot link | # Remove legacy boot link | ||||
| pisitools.remove("/boot/boot") | pisitools.remove("/boot/boot") | ||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.
Nonono. We should not be symlinking this, it should only ever be created by the user per statelessness.