filesystem: Fix issues when upgrading in container (#3181)

This commit is contained in:
Olivia Crain 2022-06-16 19:40:57 -05:00 committed by GitHub
parent b13f780029
commit 64566e6c58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 8 deletions

View File

@ -1,7 +1,7 @@
Summary: Default file system
Name: filesystem
Version: 1.1
Release: 9%{?dist}
Release: 10%{?dist}
License: GPLv3
Group: System Environment/Base
Vendor: Microsoft Corporation
@ -19,7 +19,7 @@ for the directories. This version is for a system configured with systemd.
#
# 6.5. Creating Directories
#
install -vdm 755 %{buildroot}/{dev,proc,run/{media/{floppy,cdrom},lock},sys}
install -vdm 755 %{buildroot}/{dev,run/{media/{floppy,cdrom},lock}}
install -vdm 755 %{buildroot}/{etc/{opt,sysconfig},home,mnt}
install -vdm 700 %{buildroot}/boot
install -vdm 755 %{buildroot}/{var}
@ -430,6 +430,13 @@ posix.symlink("../lib", "/usr/lib/debug/usr/lib64")
posix.symlink("../.dwz", "/usr/lib/debug/usr/.dwz")
return 0
%pretrans -p <lua>
posix.mkdir("/proc")
posix.mkdir("/sys")
posix.chmod("/proc", 0555)
posix.chmod("/sys", 0555)
return 0
%files
%defattr(-,root,root)
# Root filesystem
@ -442,12 +449,12 @@ return 0
/media
%dir /mnt
%dir /proc
%ghost %attr(555,root,root) /proc
%dir /root
%dir /run
/sbin
/srv
%dir /sys
%ghost %attr(555,root,root) /sys
%dir /tmp
%dir /usr
%dir /var
@ -566,6 +573,10 @@ return 0
/usr/local/lib64
%changelog
* Thu Jun 16 2022 Olivia Crain <oliviacrain@microsoft.com> - 1.1-10
- Mark /proc and /sys as %%ghost
- Create /proc and /sys as a pretransaction step
* Wed May 18 2022 Brendan Kerrigan <bkerrigan@microsoft.com> 1.1-9
- Update /etc/inputrc to enable Ctrl+LeftArrow and Ctrl+RightArrow word jumping binds.
- License Verified.

View File

@ -1,4 +1,4 @@
filesystem-1.1-9.cm2.aarch64.rpm
filesystem-1.1-10.cm2.aarch64.rpm
kernel-headers-5.15.45.1-2.cm2.noarch.rpm
glibc-2.35-2.cm2.aarch64.rpm
glibc-devel-2.35-2.cm2.aarch64.rpm

View File

@ -1,4 +1,4 @@
filesystem-1.1-9.cm2.x86_64.rpm
filesystem-1.1-10.cm2.x86_64.rpm
kernel-headers-5.15.45.1-2.cm2.noarch.rpm
glibc-2.35-2.cm2.x86_64.rpm
glibc-devel-2.35-2.cm2.x86_64.rpm

View File

@ -79,7 +79,7 @@ file-5.40-2.cm2.aarch64.rpm
file-debuginfo-5.40-2.cm2.aarch64.rpm
file-devel-5.40-2.cm2.aarch64.rpm
file-libs-5.40-2.cm2.aarch64.rpm
filesystem-1.1-9.cm2.aarch64.rpm
filesystem-1.1-10.cm2.aarch64.rpm
findutils-4.8.0-3.cm2.aarch64.rpm
findutils-debuginfo-4.8.0-3.cm2.aarch64.rpm
findutils-lang-4.8.0-3.cm2.aarch64.rpm

View File

@ -79,7 +79,7 @@ file-5.40-2.cm2.x86_64.rpm
file-debuginfo-5.40-2.cm2.x86_64.rpm
file-devel-5.40-2.cm2.x86_64.rpm
file-libs-5.40-2.cm2.x86_64.rpm
filesystem-1.1-9.cm2.x86_64.rpm
filesystem-1.1-10.cm2.x86_64.rpm
findutils-4.8.0-3.cm2.x86_64.rpm
findutils-debuginfo-4.8.0-3.cm2.x86_64.rpm
findutils-lang-4.8.0-3.cm2.x86_64.rpm