LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 09-02-2004, 04:51 PM   #1
Louis_Carole
Member
 
Registered: Feb 2004
Location: Oxford, OH
Distribution: LFS 5.1.1, Slackware 9.1
Posts: 94

Rep: Reputation: 15
Write-protection in scripts


Dear All,

I am attempting to write my own scripts for installing LFS 5.1. The script I have written for the first-pass glibc package (just after 'su - lfs'), when run, causes make to require me to answer "yes" to the removal of certain files and directories. When I install the package manually (sitting here twiddling my thumbs a lot during the process), still as lfs, it doesn't prompt me at all, and successfully installs. Can anyone tell me why this occurs? Thanks!

- Ben
 
Old 09-02-2004, 11:22 PM   #2
Louis_Carole
Member
 
Registered: Feb 2004
Location: Oxford, OH
Distribution: LFS 5.1.1, Slackware 9.1
Posts: 94

Original Poster
Rep: Reputation: 15
Dear All,

I... apologize for having asked this question. My script does install the package correctly.

The problem occurs when `rm -r glibc-build glibc-2.3.3-lfs-5.1' executes. A handful of files have read-oly user status, and so rm asks the question "Are you sure?", apropriately. The solution is simple:

Use the -f, or --force, option for rm.

Thanks for you patience.

- Ben
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba Write Protection amajos Linux - Networking 1 08-11-2005 07:58 PM
Detecting write-protection on DVD-RAM media SMes Linux - Software 0 11-24-2004 06:43 AM
write protection speed_viper Linux - Software 5 10-02-2004 12:10 AM
Write protection question... floridagators1 Mandriva 5 05-22-2004 09:29 AM
Write Protection mfo6463 Linux - Newbie 5 03-31-2004 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration