Coder Social home page Coder Social logo

Computer name change isn't working about imagr HOT 6 CLOSED

imagr avatar imagr commented on July 18, 2024
Computer name change isn't working

from imagr.

Comments (6)

clburlison avatar clburlison commented on July 18, 2024

Hey @efranklin, I haven't imaged a computer since June but last time I used the same workflow you are referring to without error. The firstboot log is located at /var/log/first-boot.log.

from imagr.

grahamgilbert avatar grahamgilbert commented on July 18, 2024

What name are you using? The script to set the name is literally

#!/bin/bash

NAME="{{computer_name}}"

/usr/sbin/scutil --set ComputerName "$NAME"
/usr/sbin/scutil --set HostName "$NAME"
/usr/sbin/scutil --set LocalHostName "$NAME"

So it's possible we need to do some more parsing to eliminate invalid names, but that remains to be seen

I just Imaged a basic VM (10.10.4, clear reg package and an admin user) and it worked as expected
screenshot 2015-07-30 10 01 30

As Clayton said, the logs will be helpful.

from imagr.

efranklin avatar efranklin commented on July 18, 2024

I won't be back to that location until Friday and I'll get you the logs then. This is one of the names I've tried to use: AB355-180180

from imagr.

efranklin avatar efranklin commented on July 18, 2024

I figured out why it wasn't working. I initially put the "computer_name" script as the first item in the "components" array. I moved it after the "image" script and it worked fine. Is this expected behavior?

Also, the "computer_name" script doesn't show in the "first-boot.log" file.

from imagr.

grahamgilbert avatar grahamgilbert commented on July 18, 2024

Yes, expected behaviour. Workflow components are applied in the order they are specified in the plist. The only reason you are asked for a name prior to imaging is I didn't want to have to wait around!

Graham Gilbert
Sent from my iPhone

On 30 Jul 2015, at 18:57, efranklin [email protected] wrote:

I figured out why it wasn't working. I initially put the "computer_name" script as the first item in the "components" array. I moved it after the "image" script and it worked fine. Is this expected behavior?

Also, the "computer_name" script doesn't show in the "first-boot.log" file.


Reply to this email directly or view it on GitHub.

from imagr.

efranklin avatar efranklin commented on July 18, 2024

Good to know. Thank you for your help.

from imagr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.