Skip to content

Commit

Permalink
Merge branch 'f37' of github.com:mikeeq/mbp-fedora into feature/v6_0_9
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeeq committed Nov 21, 2022
2 parents 790c48e + 8330301 commit fc1a591
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 13 deletions.
39 changes: 30 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,27 +100,41 @@ macOS Mojave: 10.14.6 (18G103)
# Docs: https://docs.fedoraproject.org/en-US/quick-docs/dnf-system-upgrade/
sudo -i
# Upgrade kernel beforehand
# 1. Make sure your OS is up to date
dnf update -y --refresh
reboot
# 2. Update mbp-fedora-kernel
## update_kernel_mbp has built-in selfupgrade function, so when it fails it's just due to script update - please rerun everything should be good on second run
KERNEL_VERSION="6.0.9-f37" UPDATE_SCRIPT_BRANCH="v6.0-f37" update_kernel_mbp
# Upgrade your OS
dnf upgrade -y --refresh
# 3. Update your OS to include all changes made in mbp-fedora-t2-config RPM
dnf update -y --refresh
reboot
# 4. Install dnf-plugin-system-upgrade
dnf install -y dnf-plugin-system-upgrade
# Exclude official kernel from upgrade to not override mbp-fedora-kernel
## If you're trying to upgrade older version of mbp-fedora to latest version, please repeat a process by upgrading only to one major release of Fedora, i.e.: Fedora 33 -> 34, 34 -> 35, 35 -> 36
# 5. Upgrade to new OS version
## If you're trying to upgrade older version of mbp-fedora to latest version, please repeat a process by upgrading only to one major release of Fedora, i.e.: Fedora 33 -> 34, 34 -> 35, 35 -> 36, 36 -> 37, by changing the number in `--releasever` argument
dnf system-upgrade download -y --releasever=37 --exclude='kernel*'
dnf system-upgrade download -y --releasever=37
# Reboot your Mac
# 6. Reboot your Mac
dnf system-upgrade reboot
# After reboot clean old packages
# 7. After reboot clean old packages
dnf clean packages
## or clean all dnf cache
## 7.1 Clean all dnf cache
dnf clean all
## 8. Clean all unneeded packages
dnf autoremove -y
## 9. Update your new version of Fedora
dnf update -y --refresh
reboot
```

## Not working
Expand All @@ -132,6 +146,13 @@ dnf clean all
## TODO
- disable iBridge network interface (awkward internal Ethernet device?)
```bash
echo "# Disable Unused Apple Ethernet
blacklist cdc_ncm
blacklist cdc_mbim" | sudo tee -a /etc/modprobe.d/blacklist.conf
```
- disable not working camera device
- there are two video devices (web cameras) initialized/discovered, don't know why yet

Expand Down
7 changes: 3 additions & 4 deletions fedora-mbp.ks
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### Add rpm repo hosted on heroku https://github.com/mikeeq/mbp-fedora-kernel/releases
repo --name=fedora-mbp --baseurl=https://fedora-mbp-repo.herokuapp.com/
repo --name=mbp-fedora --baseurl=https://mbp-fedora-repo.herokuapp.com/

### Selinux in permissive mode
bootloader --append="intel_iommu=on iommu=pt pcie_ports=compat"
Expand All @@ -21,6 +21,8 @@ mbp-fedora-t2-repo
%end

%post
UPDATE_SCRIPT_BRANCH=v6.0-f37
### Add dns server configuration
echo "===]> Info: Printing PWD"
pwd
Expand All @@ -35,9 +37,6 @@ echo 'nameserver 8.8.8.8' > /etc/resolv.conf
echo "===]> Info: Print /etc/resolv.conf"
cat /etc/resolv.conf
KERNEL_VERSION=6.0.9-300.mbp.fc37.x86_64
UPDATE_SCRIPT_BRANCH=v6.0-f37
### Add update_kernel_mbp script
curl -L https://raw.githubusercontent.com/mikeeq/mbp-fedora-kernel/${UPDATE_SCRIPT_BRANCH}/update_kernel_mbp.sh -o /usr/bin/update_kernel_mbp
chmod +x /usr/bin/update_kernel_mbp
Expand Down

0 comments on commit fc1a591

Please sign in to comment.