From c88a2e072b41f931f0b8a47d0c862c9479538f53 Mon Sep 17 00:00:00 2001 From: Aditya Date: Mon, 9 Jan 2023 15:48:17 +0530 Subject: [PATCH] Add 7.2 - change ownership to root --- scripts/chapter7/7.2-change-ownership.sh | 6 ++++++ scripts/main.sh | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 scripts/chapter7/7.2-change-ownership.sh diff --git a/scripts/chapter7/7.2-change-ownership.sh b/scripts/chapter7/7.2-change-ownership.sh new file mode 100644 index 0000000..95eb263 --- /dev/null +++ b/scripts/chapter7/7.2-change-ownership.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +chown -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools} +case $(uname -m) in + x86_64) chown -R root:root $LFS/lib64 ;; +esac diff --git a/scripts/main.sh b/scripts/main.sh index 2edd80d..add3840 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -395,3 +395,9 @@ then stop_script "chapter6/6.18-gcc.sh" fi +# Chapter 7.2 +# =========== +echo "Chapter 7" +echo "Changing ownership to root" +su -c "bash $PWD/chapter7/7.2-changing-ownership.sh" +