Skip to content

Commit

Permalink
baselayout: /usr merge /bin and /sbin paths
Browse files Browse the repository at this point in the history
**Summary**
- Symlink {/bin,/sbin} to {/usr/bin,/usr/sbin}
- Any existing binaries in /bin or /sbin will be seemlessly moved over.

**Packager's Notes**
- Note that /lib(64) will be merged to /usr in a follow up PR to
  complete the /usr merge transition.

Part of #293.
  • Loading branch information
joebonrichie committed Apr 29, 2024
1 parent 2d3a033 commit 88f4f24
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
10 changes: 9 additions & 1 deletion packages/b/baselayout/package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name : baselayout
version : 1.9.0
release : 76
release : 77
source :
- https://github.com/getsolus/baselayout/releases/download/v1.9.0/baselayout-1.9.0.tar.gz : a2a3e4fdb6349b479a16d9ffcf2335fb0f4d75d2cdd1cdbb80cb6c02652f37de
homepage : https://github.com/getsolus/baselayout
Expand All @@ -15,6 +15,8 @@ install : |
install -dm00755 %installroot%/usr
install -dm00755 %installroot%/lib64
install -dm00755 %installroot%/usr/lib64
install -dm00755 %installroot%/usr/bin
install -dm00755 %installroot%/usr/sbin
install -dm00755 %installroot%/etc
install -dm00755 %installroot%/boot
install -dm00755 %installroot%/dev
Expand All @@ -38,6 +40,10 @@ install : |
ln -sv /proc/self/mounts %installroot%/etc/mtab
# /usr merge
ln -srv %installroot%/usr/bin %installroot%/bin
ln -srv %installroot%/usr/sbin %installroot%/sbin
# Install our files
cp -a $workdir/* $installdir/
chmod 00600 $installdir/usr/share/baselayout/shadow
Expand All @@ -58,7 +64,9 @@ install : |
# Mark as permanent so eopkg doesn't nuke it.
permanent :
- /usr
- /usr/bin
- /usr/lib*
- /usr/sbin
- /tmp
- /etc
- /dev/
Expand Down
8 changes: 6 additions & 2 deletions packages/b/baselayout/pspec_x86_64.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
</Description>
<PartOf>system.base</PartOf>
<Files>
<Path fileType="executable">/bin</Path>
<Path fileType="data">/boot</Path>
<Path fileType="data">/dev</Path>
<Path fileType="config">/etc/filesystems</Path>
Expand All @@ -41,11 +42,14 @@
<Path fileType="data">/proc</Path>
<Path fileType="data">/root</Path>
<Path fileType="data">/run/lock</Path>
<Path fileType="executable">/sbin</Path>
<Path fileType="data">/sys</Path>
<Path fileType="data">/tmp</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="library">/usr/lib64/os-release</Path>
<Path fileType="library">/usr/lib64/tmpfiles.d/etc-nsswitch-conf.conf</Path>
<Path fileType="executable">/usr/sbin</Path>
<Path fileType="data">/usr/share/baselayout/fstab</Path>
<Path fileType="data">/usr/share/baselayout/group</Path>
<Path fileType="data">/usr/share/baselayout/group-</Path>
Expand All @@ -66,8 +70,8 @@
</Files>
</Package>
<History>
<Update release="76">
<Date>2024-04-08</Date>
<Update release="77">
<Date>2024-04-29</Date>
<Version>1.9.0</Version>
<Comment>Packaging update</Comment>
<Name>Joey Riches</Name>
Expand Down

0 comments on commit 88f4f24

Please sign in to comment.